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

Unified Diff: Source/core/inspector/WorkerRuntimeAgent.cpp

Issue 299803003: Add isPausedWorker command to Runtime and use it to auto attach DevTools to ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/core/inspector/WorkerRuntimeAgent.cpp
diff --git a/Source/core/inspector/WorkerRuntimeAgent.cpp b/Source/core/inspector/WorkerRuntimeAgent.cpp
index d1f8aef9f6e0d1e45e7eec23a406a75f74202fdc..54182ea46cf433b542b0f34c38fcee0c3efc74d0 100644
--- a/Source/core/inspector/WorkerRuntimeAgent.cpp
+++ b/Source/core/inspector/WorkerRuntimeAgent.cpp
@@ -94,6 +94,11 @@ void WorkerRuntimeAgent::run(ErrorString*)
m_paused = false;
}
+void WorkerRuntimeAgent::isPausedWorker(ErrorString*, bool* out_result)
+{
+ *out_result = m_paused;
+}
+
void WorkerRuntimeAgent::willEvaluateWorkerScript(WorkerGlobalScope* context, int workerThreadStartMode)
{
if (workerThreadStartMode != PauseWorkerGlobalScopeOnStart)

Powered by Google App Engine
This is Rietveld 408576698