Home | History | Annotate | Download | only in workers

Lines Matching refs:worker

85     // Updates the list of the worker's documents, per section 4.5 of the WebWorkers spec.
90 // Removes a detached document from the list of worker's documents. May set the closing flag if this is the last document in the list.
104 // Ensures exclusive access to the worker documents. Must not grab any other locks (such as the DefaultSharedWorkerRepository lock) while holding this one.
217 // Stop the worker thread - the proxy will stay around until we get workerThreadExited() notification.
250 // Loads the script on behalf of a worker.
266 SharedWorkerScriptLoader::SharedWorkerScriptLoader(PassRefPtr<SharedWorker> worker, PassOwnPtr<MessagePortChannel> port, PassRefPtr<SharedWorkerProxy> proxy)
267 : m_worker(worker)
289 // Hand off the just-loaded code to the repository to start up the worker thread.
326 void SharedWorkerRepository::connect(PassRefPtr<SharedWorker> worker, PassOwnPtr<MessagePortChannel> port, const KURL& url, const String& name, ExceptionCode& ec)
328 DefaultSharedWorkerRepository::instance().connectToWorker(worker, port, url, name, ec);
369 void DefaultSharedWorkerRepository::connectToWorker(PassRefPtr<SharedWorker> worker, PassOwnPtr<MessagePortChannel> port, const KURL& url, const String& name, ExceptionCode& ec)
372 ASSERT(worker->scriptExecutionContext()->securityOrigin()->canAccess(SecurityOrigin::create(url).get()));
375 proxy->addToWorkerDocuments(worker->scriptExecutionContext());
385 RefPtr<SharedWorkerScriptLoader> loader = adoptRef(new SharedWorkerScriptLoader(worker, port.release(), proxy.release()));
393 // Look for an existing worker, and create one if it doesn't exist.