Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: Source/web/WebEmbeddedWorkerImpl.cpp

Issue 423303004: Change WokerThread to use a blink::WebThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove changes made to WebThread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/web/WebWorkerRunLoop.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
index c28bd7802a4b9da135b37a7272218d2c9ab88c91..aab92f5f6b072050e8fa9a342b37586dbc147f49 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -126,7 +126,8 @@ public:
{
if (m_embeddedWorker.m_askedToTerminate || !m_embeddedWorker.m_workerThread)
return false;
- return m_embeddedWorker.m_workerThread->runLoop().postTask(task);
+ m_embeddedWorker.m_workerThread->postTask(task);
+ return !m_embeddedWorker.m_workerThread->terminated();
}
private:
@@ -257,30 +258,30 @@ void WebEmbeddedWorkerImpl::resumeAfterDownload()
void WebEmbeddedWorkerImpl::resumeWorkerContext()
{
if (m_workerThread)
- m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(resumeWorkerContextTask, true));
+ m_workerThread->postDebuggerTask(createCrossThreadTask(resumeWorkerContextTask, true));
}
void WebEmbeddedWorkerImpl::attachDevTools()
{
if (m_workerThread)
- m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(connectToWorkerContextInspectorTask, true));
+ m_workerThread->postDebuggerTask(createCrossThreadTask(connectToWorkerContextInspectorTask, true));
}
void WebEmbeddedWorkerImpl::reattachDevTools(const WebString& savedState)
{
- m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(reconnectToWorkerContextInspectorTask, String(savedState)));
+ m_workerThread->postDebuggerTask(createCrossThreadTask(reconnectToWorkerContextInspectorTask, String(savedState)));
}
void WebEmbeddedWorkerImpl::detachDevTools()
{
- m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(disconnectFromWorkerContextInspectorTask, true));
+ m_workerThread->postDebuggerTask(createCrossThreadTask(disconnectFromWorkerContextInspectorTask, true));
}
void WebEmbeddedWorkerImpl::dispatchDevToolsMessage(const WebString& message)
{
if (m_askedToTerminate)
return;
- m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBackendTask, String(message)));
+ m_workerThread->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBackendTask, String(message)));
m_workerThread->interruptAndDispatchInspectorCommands();
}
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/web/WebWorkerRunLoop.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698