Home | History | Annotate | Download | only in src

Lines Matching refs:worker

63 // Callback class that keeps the SharedWorker and WebSharedWorker objects alive while loads are potentially happening, and also translates load errors into error events on the worker.
66 SharedWorkerScriptLoader(PassRefPtr<SharedWorker> worker, const KURL& url, const String& name, PassOwnPtr<MessagePortChannel> port, PassOwnPtr<WebSharedWorker> webWorker)
67 : m_worker(worker)
128 // If the shared worker is not yet running, load the script resource for it, otherwise just send it a connect event.
133 // Keep the worker + JS wrapper alive until the resource load is complete in case we need to dispatch an error event.
142 // Extract the WebMessagePortChannel to send to the worker.
155 // Pass the script off to the worker, then send a connect event.
185 void SharedWorkerRepository::connect(PassRefPtr<SharedWorker> worker, PassOwnPtr<MessagePortChannel> port, const KURL& url, const String& name, ExceptionCode& ec)
192 ASSERT(worker->scriptExecutionContext()->isDocument());
193 Document* document = static_cast<Document*>(worker->scriptExecutionContext());
199 // Existing worker does not match this url, so return an error back to the caller.
207 // The loader object manages its own lifecycle (and the lifecycles of the two worker objects).
209 SharedWorkerScriptLoader* loader = new SharedWorkerScriptLoader(worker, url, name, port.release(), webWorker.release());