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

Unified Diff: Source/bindings/core/v8/WorkerScriptDebugServer.cpp

Issue 1131183003: WorkerThread: Remove willEnterNestedLoop() and didLeaveNestedLoop(). Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 7 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 | « no previous file | Source/core/inspector/WorkerDebuggerAgent.cpp » ('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 41b5a0d1fba6c823d788b0660a4a1fd056eea9d0..65544e87b03e6081ffcb001e3fccb18688e4d651 100644
--- a/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
+++ b/Source/bindings/core/v8/WorkerScriptDebugServer.cpp
@@ -32,6 +32,7 @@
#include "bindings/core/v8/WorkerScriptDebugServer.h"
#include "bindings/core/v8/V8ScriptRunner.h"
+#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/ScriptDebugListener.h"
#include "core/inspector/WorkerDebuggerAgent.h"
#include "core/workers/WorkerGlobalScope.h"
@@ -90,12 +91,12 @@ ScriptDebugListener* WorkerScriptDebugServer::getDebugListenerForContext(v8::Loc
void WorkerScriptDebugServer::runMessageLoopOnPause(v8::Local<v8::Context>)
{
MessageQueueWaitResult result;
- m_workerGlobalScope->thread()->willEnterNestedLoop();
+ InspectorInstrumentation::willEnterNestedRunLoop(m_workerGlobalScope.get());
do {
result = m_workerGlobalScope->thread()->runDebuggerTask();
// Keep waiting until execution is resumed.
} while (result == MessageQueueMessageReceived && scriptDebugServer()->isPaused());
- m_workerGlobalScope->thread()->didLeaveNestedLoop();
+ InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get());
// The listener may have been removed in the nested loop.
if (m_listener)
« no previous file with comments | « no previous file | Source/core/inspector/WorkerDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698