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

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: rename isPausedWorker to into isRunRequired 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
« no previous file with comments | « Source/core/inspector/WorkerRuntimeAgent.h ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/WorkerRuntimeAgent.cpp
diff --git a/Source/core/inspector/WorkerRuntimeAgent.cpp b/Source/core/inspector/WorkerRuntimeAgent.cpp
index d1f8aef9f6e0d1e45e7eec23a406a75f74202fdc..ff453d9e2b4711f3d553a789110ab261602995ab 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::isRunRequired(ErrorString*, bool* out_result)
+{
+ *out_result = m_paused;
+}
+
void WorkerRuntimeAgent::willEvaluateWorkerScript(WorkerGlobalScope* context, int workerThreadStartMode)
{
if (workerThreadStartMode != PauseWorkerGlobalScopeOnStart)
« no previous file with comments | « Source/core/inspector/WorkerRuntimeAgent.h ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698