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

Unified Diff: webkit/glue/devtools/debugger_agent_manager.h

Issue 160012: DevTools: make pause work for script evaluations (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: webkit/glue/devtools/debugger_agent_manager.h
===================================================================
--- webkit/glue/devtools/debugger_agent_manager.h (revision 21519)
+++ webkit/glue/devtools/debugger_agent_manager.h (working copy)
@@ -52,6 +52,23 @@
static void OnNavigate();
+ class UtilityContextScope {
+ public:
+ UtilityContextScope() {
+ DCHECK(!in_utility_context_);
+ in_utility_context_ = true;
+ }
+ ~UtilityContextScope() {
+ if (debug_break_delayed_) {
+ v8::Debug::DebugBreak();
+ debug_break_delayed_ = false;
+ }
+ in_utility_context_ = false;
+ }
+ private:
+ DISALLOW_COPY_AND_ASSIGN(UtilityContextScope);
+ };
+
private:
DebuggerAgentManager();
~DebuggerAgentManager();
@@ -75,6 +92,9 @@
DeferrersMap;
static DeferrersMap page_deferrers_;
+ static bool in_utility_context_;
+ static bool debug_break_delayed_;
+
DISALLOW_COPY_AND_ASSIGN(DebuggerAgentManager);
};

Powered by Google App Engine
This is Rietveld 408576698