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

Unified Diff: Source/core/inspector/InspectorTaskRunner.h

Issue 1164263002: DevTools: disable interrupts when dispatching inspector commands (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed invalid assert Created 5 years, 6 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/InspectorTaskRunner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTaskRunner.h
diff --git a/Source/core/inspector/InspectorTaskRunner.h b/Source/core/inspector/InspectorTaskRunner.h
index 7e608ed6c75837d268c2d98883e0278545a665da..336c271f44b6c869f0cbea31602b0e7baad6b4f7 100644
--- a/Source/core/inspector/InspectorTaskRunner.h
+++ b/Source/core/inspector/InspectorTaskRunner.h
@@ -29,7 +29,15 @@ public:
void interruptAndRun(PassOwnPtr<Task>);
void runPendingTasks();
- void setIgnoreInterrupts(bool ignore) { m_ignoreInterrupts = ignore; }
+ class IgnoreInterruptsScope final {
+ public:
+ explicit IgnoreInterruptsScope(InspectorTaskRunner*);
+ ~IgnoreInterruptsScope();
+
+ private:
+ bool m_wasIgnoring;
+ InspectorTaskRunner* m_taskRunner;
+ };
private:
static void v8InterruptCallback(v8::Isolate*, void* data);
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698