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

Unified Diff: Source/bindings/core/v8/WorkerScriptDebugServer.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/bindings/core/v8/WorkerScriptController.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WorkerScriptDebugServer.cpp
diff --git a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
index ba1084f7c2a60a4df3b2866869229c3722a03d0c..de9ea7334b1478279eda9a91e97fd8ac44277b01 100644
--- a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
+++ b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
@@ -98,10 +98,12 @@ ScriptDebugListener* WorkerScriptDebugServer::getDebugListenerForContext(v8::Han
void WorkerScriptDebugServer::runMessageLoopOnPause(v8::Handle<v8::Context>)
{
MessageQueueWaitResult result;
+ m_workerGlobalScope->thread()->willEnterNestedLoop();
do {
result = m_workerGlobalScope->thread()->runDebuggerTask();
// Keep waiting until execution is resumed.
} while (result == MessageQueueMessageReceived && isPaused());
+ m_workerGlobalScope->thread()->didLeaveNestedLoop();
// The listener may have been removed in the nested loop.
if (m_listener)
« no previous file with comments | « Source/bindings/core/v8/WorkerScriptController.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698