Home
last modified time | relevance | path

Searched refs:workerContext (Results 1 – 25 of 44) sorted by relevance

12

/external/webkit/Source/WebCore/bindings/v8/
DWorkerScriptDebugServer.cpp74 …d WorkerScriptDebugServer::addListener(ScriptDebugListener* listener, WorkerContext* workerContext) in addListener() argument
86 m_listenersMap.set(workerContext, listener); in addListener()
88 WorkerContextExecutionProxy* proxy = workerContext->script()->proxy(); in addListener()
104 …orkerScriptDebugServer::removeListener(ScriptDebugListener* listener, WorkerContext* workerContext) in removeListener() argument
106 if (!m_listenersMap.contains(workerContext)) in removeListener()
109 if (m_pausedWorkerContext == workerContext) in removeListener()
112 m_listenersMap.remove(workerContext); in removeListener()
120 WorkerContext* workerContext = retrieveWorkerContext(context); in getDebugListenerForContext() local
121 if (!workerContext) in getDebugListenerForContext()
123 return m_listenersMap.get(workerContext); in getDebugListenerForContext()
[all …]
DWorkerScriptController.cpp52 WorkerScriptController::WorkerScriptController(WorkerContext* workerContext) in WorkerScriptController() argument
53 : m_workerContext(workerContext) in WorkerScriptController()
54 , m_proxy(new WorkerContextExecutionProxy(workerContext)) in WorkerScriptController()
119 WorkerContext* workerContext = V8WorkerContext::toNative(global); in controllerForContext() local
120 return workerContext->script(); in controllerForContext()
DScheduledAction.cpp128 void ScheduledAction::execute(WorkerContext* workerContext) in execute() argument
131 ASSERT(workerContext->thread()->threadID() == currentThread()); in execute()
133 WorkerScriptController* scriptController = workerContext->script(); in execute()
DV8DOMWrapper.cpp252 WorkerContext* workerContext = 0; in instantiateV8Object() local
268workerContext = V8WorkerContext::toNative(lookupDOMWrapper(V8WorkerContext::GetTemplate(), context… in instantiateV8Object()
280 if (workerContext) in instantiateV8Object()
281 function = getConstructor(type, workerContext); in instantiateV8Object()
366 if (DedicatedWorkerContext* workerContext = target->toDedicatedWorkerContext()) in convertEventTargetToV8Object() local
367 return toV8(workerContext); in convertEventTargetToV8Object()
/external/webkit/Source/WebCore/workers/
DWorkerThread.cpp176 WorkerContext* workerContext = static_cast<WorkerContext*>(context); in performTask() local
178 workerContext->clearScript(); in performTask()
179 workerContext->thread()->runLoop().terminate(); in performTask()
195 WorkerContext* workerContext = static_cast<WorkerContext*>(context); in performTask() local
199 workerContext->stopDatabases(&cleanupSync); in performTask()
202 workerContext->stopActiveDOMObjects(); in performTask()
204 workerContext->notifyObserversOfStop(); in performTask()
208 workerContext->removeAllEventListeners(); in performTask()
218 workerContext->postTask(WorkerThreadShutdownFinishTask::create()); in performTask()
/external/webkit/Source/WebCore/inspector/
DWorkerInspectorController.cpp55 WorkerRuntimeAgent(InjectedScriptManager* injectedScriptManager, WorkerContext* workerContext) in WorkerRuntimeAgent() argument
57 , m_workerContext(workerContext) { } in WorkerRuntimeAgent()
71 WorkerInspectorController::WorkerInspectorController(WorkerContext* workerContext) in WorkerInspectorController() argument
72 : m_workerContext(workerContext) in WorkerInspectorController()
77 …rkerDebuggerAgent::create(m_instrumentingAgents.get(), m_state.get(), workerContext, m_injectedScr… in WorkerInspectorController()
79 , m_runtimeAgent(adoptPtr(new WorkerRuntimeAgent(m_injectedScriptManager.get(), workerContext))) in WorkerInspectorController()
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8WorkerContextCustom.cpp52 WorkerContext* workerContext = V8WorkerContext::toNative(args.Holder()); in SetTimeoutOrInterval() local
62 WorkerContextExecutionProxy* proxy = workerContext->script()->proxy(); in SetTimeoutOrInterval()
69 …timerId = DOMTimer::install(workerContext, new ScheduledAction(v8Context, stringFunction, workerCo… in SetTimeoutOrInterval()
81 timerId = DOMTimer::install(workerContext, action, timeout, singleShot); in SetTimeoutOrInterval()
103 WorkerContext* workerContext = V8WorkerContext::toNative(args.Holder()); in importScriptsCallback() local
106 workerContext->importScripts(urls, ec); in importScriptsCallback()
DV8DedicatedWorkerContextCustom.cpp48 DedicatedWorkerContext* workerContext = V8DedicatedWorkerContext::toNative(args.Holder()); in postMessageCallback() local
59 workerContext->postMessage(message.release(), &portArray, ec); in postMessageCallback()
/external/webkit/Source/WebCore/bindings/js/
DJSWorkerContextBase.cpp64 JSValue toJS(ExecState* exec, JSDOMGlobalObject*, WorkerContext* workerContext) in toJS() argument
66 return toJS(exec, workerContext); in toJS()
69 JSValue toJS(ExecState*, WorkerContext* workerContext) in toJS() argument
71 if (!workerContext) in toJS()
73 WorkerScriptController* script = workerContext->script(); in toJS()
DScheduledAction.cpp140 void ScheduledAction::execute(WorkerContext* workerContext) in execute() argument
143 ASSERT(workerContext->thread()->threadID() == currentThread()); in execute()
145 WorkerScriptController* scriptController = workerContext->script(); in execute()
149 executeFunctionInContext(contextWrapper, contextWrapper, workerContext); in execute()
151 ScriptSourceCode code(m_code, workerContext->url()); in execute()
DJSEventTarget.cpp147 if (DedicatedWorkerContext* workerContext = target->toDedicatedWorkerContext()) in toJS() local
148 return toJSDOMGlobalObject(workerContext, exec); in toJS()
155 if (SharedWorkerContext* workerContext = target->toSharedWorkerContext()) in toJS() local
156 return toJSDOMGlobalObject(workerContext, exec); in toJS()
DScriptState.cpp90 ScriptState* scriptStateFromWorkerContext(WorkerContext* workerContext) in scriptStateFromWorkerContext() argument
92 return workerContext->script()->workerContextWrapper()->globalExec(); in scriptStateFromWorkerContext()
/external/webkit/Source/WebCore/websockets/
DThreadableWebSocketChannel.cpp60 WorkerContext* workerContext = static_cast<WorkerContext*>(context); in create() local
61 WorkerRunLoop& runLoop = workerContext->thread()->runLoop(); in create()
64 return WorkerThreadableWebSocketChannel::create(workerContext, client, mode, url, protocol); in create()
DWorkerThreadableWebSocketChannel.h57 …static PassRefPtr<ThreadableWebSocketChannel> create(WorkerContext* workerContext, WebSocketChanne… in create() argument
59 …return adoptRef(new WorkerThreadableWebSocketChannel(workerContext, client, taskMode, url, protoco… in create()
114 …tChannelClientWrapper> workerClientWrapper, PassRefPtr<WorkerContext> workerContext, const String&… in create() argument
116 … return adoptRef(new Bridge(workerClientWrapper, workerContext, taskMode, url, protocol)); in create()
/external/webkit/Source/WebKit/chromium/src/
DWorkerAsyncFileWriterChromium.cpp53 …mium(WebFileSystem* webFileSystem, const String& path, WorkerContext* workerContext, AsyncFileWrit… in WorkerAsyncFileWriterChromium() argument
58 WorkerLoaderProxy* proxy = &workerContext->thread()->workerLoaderProxy(); in WorkerAsyncFileWriterChromium()
59 m_bridge = WorkerFileWriterCallbacksBridge::create(path, proxy, workerContext, client); in WorkerAsyncFileWriterChromium()
DWebSharedWorkerImpl.cpp90 WorkerContext* workerContext = static_cast<WorkerContext*>(context); in connectTask() local
91 ASSERT(workerContext->isSharedWorkerContext()); in connectTask()
92 workerContext->toSharedWorkerContext()->dispatchEvent(createConnectEvent(port)); in connectTask()
DWebWorkerBase.cpp222 WorkerContext* workerContext = controller->workerContext(); in allowDatabase() local
231 if (runLoop.runInMode(workerContext, mode) == MessageQueueTerminated) { in allowDatabase()
244 WorkerContext* workerContext = controller->workerContext(); in openFileSystemForWorker() local
250 …mCallbacksBridge> bridge = WorkerFileSystemCallbacksBridge::create(this, workerContext, callbacks); in openFileSystemForWorker()
254 if (runLoop.runInMode(workerContext, mode) == MessageQueueTerminated) in openFileSystemForWorker()
DWebWorkerImpl.cpp85 DedicatedWorkerContext* workerContext = in postMessageToWorkerContextTask() local
92 workerContext->dispatchEvent(MessageEvent::create( in postMessageToWorkerContextTask()
94 thisPtr->confirmMessageFromWorkerObject(workerContext->hasPendingActivity()); in postMessageToWorkerContextTask()
DWorkerAsyncFileSystemChromium.cpp142 …bFileSystem, PassOwnPtr<WebCore::AsyncFileSystemCallbacks> callbacks, WorkerContext* workerContext) in create() argument
144 …optPtr(new WorkerFileWriterHelperCallbacks(client, path, webFileSystem, callbacks, workerContext)); in create()
191 …bFileSystem, PassOwnPtr<WebCore::AsyncFileSystemCallbacks> callbacks, WorkerContext* workerContext) in WorkerFileWriterHelperCallbacks() argument
196 , m_workerContext(workerContext) in WorkerFileWriterHelperCallbacks()
DWorkerAsyncFileWriterChromium.h64 …Kit::WebFileSystem* webFileSystem, const String& path, WorkerContext* workerContext, AsyncFileWrit… in create() argument
66 …return adoptPtr(new WorkerAsyncFileWriterChromium(webFileSystem, path, workerContext, client, type… in create()
DDatabaseObserver.cpp61 WorkerContext* workerContext = static_cast<WorkerContext*>(scriptExecutionContext); in canEstablishDatabase() local
62 WorkerLoaderProxy* workerLoaderProxy = &workerContext->thread()->workerLoaderProxy(); in canEstablishDatabase()
DLocalFileSystemChromium.cpp77 WorkerContext* workerContext = static_cast<WorkerContext*>(context); in openFileSystemHelper() local
78 WorkerLoaderProxy* workerLoaderProxy = &workerContext->thread()->workerLoaderProxy(); in openFileSystemHelper()
/external/webkit/Source/WebCore/loader/
DWorkerThreadableLoader.cpp57 WorkerThreadableLoader::WorkerThreadableLoader(WorkerContext* workerContext, ThreadableLoaderClient… in WorkerThreadableLoader() argument
58 : m_workerContext(workerContext) in WorkerThreadableLoader()
60 …erContext->thread()->workerLoaderProxy(), taskMode, request, options, workerContext->url().strippe… in WorkerThreadableLoader()
69 void WorkerThreadableLoader::loadResourceSynchronously(WorkerContext* workerContext, const Resource… in loadResourceSynchronously() argument
71 WorkerRunLoop& runLoop = workerContext->thread()->runLoop(); in loadResourceSynchronously()
77 …RefPtr<WorkerThreadableLoader> loader = WorkerThreadableLoader::create(workerContext, &client, mod… in loadResourceSynchronously()
80 result = runLoop.runInMode(workerContext, mode); in loadResourceSynchronously()
DWorkerThreadableLoader.h60 …static PassRefPtr<WorkerThreadableLoader> create(WorkerContext* workerContext, ThreadableLoaderCli… in create() argument
62 … return adoptRef(new WorkerThreadableLoader(workerContext, client, taskMode, request, options)); in create()
/external/webkit/Source/WebCore/bindings/cpp/
DWebDOMEventTarget.cpp175 if (WebCore::DedicatedWorkerContext* workerContext = value->toDedicatedWorkerContext()) in toWebKit() local
176 return toWebKit(workerContext); in toWebKit()
183 if (WebCore::SharedWorkerContext* workerContext = value->toSharedWorkerContext()) in toWebKit() local
184 return toWebKit(workerContext); in toWebKit()

12