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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.cpp

Issue 432673003: Revert of Change WokerThread to use a blink::WebThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 aab92f5f6b072050e8fa9a342b37586dbc147f49..c28bd7802a4b9da135b37a7272218d2c9ab88c91 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -126,8 +126,7 @@
{
if (m_embeddedWorker.m_askedToTerminate || !m_embeddedWorker.m_workerThread)
return false;
- m_embeddedWorker.m_workerThread->postTask(task);
- return !m_embeddedWorker.m_workerThread->terminated();
+ return m_embeddedWorker.m_workerThread->runLoop().postTask(task);
}
private:
@@ -258,30 +257,30 @@
void WebEmbeddedWorkerImpl::resumeWorkerContext()
{
if (m_workerThread)
- m_workerThread->postDebuggerTask(createCrossThreadTask(resumeWorkerContextTask, true));
+ m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(resumeWorkerContextTask, true));
}
void WebEmbeddedWorkerImpl::attachDevTools()
{
if (m_workerThread)
- m_workerThread->postDebuggerTask(createCrossThreadTask(connectToWorkerContextInspectorTask, true));
+ m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(connectToWorkerContextInspectorTask, true));
}
void WebEmbeddedWorkerImpl::reattachDevTools(const WebString& savedState)
{
- m_workerThread->postDebuggerTask(createCrossThreadTask(reconnectToWorkerContextInspectorTask, String(savedState)));
+ m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(reconnectToWorkerContextInspectorTask, String(savedState)));
}
void WebEmbeddedWorkerImpl::detachDevTools()
{
- m_workerThread->postDebuggerTask(createCrossThreadTask(disconnectFromWorkerContextInspectorTask, true));
+ m_workerThread->runLoop().postDebuggerTask(createCrossThreadTask(disconnectFromWorkerContextInspectorTask, true));
}
void WebEmbeddedWorkerImpl::dispatchDevToolsMessage(const WebString& message)
{
if (m_askedToTerminate)
return;
- m_workerThread->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBackendTask, String(message)));
+ m_workerThread->runLoop().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