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

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

Issue 100042: Handle 'afterCompile' debugger events (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « webkit/glue/devtools/debugger_agent_manager.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/debugger_agent_manager.cc
===================================================================
--- webkit/glue/devtools/debugger_agent_manager.cc (revision 14725)
+++ webkit/glue/devtools/debugger_agent_manager.cc (working copy)
@@ -24,6 +24,9 @@
WebDevToolsAgent::MessageLoopDispatchHandler
DebuggerAgentManager::message_loop_dispatch_handler_ = NULL;
+// static
+bool DebuggerAgentManager::in_host_dispatch_handler_ = false;
+
namespace {
class CallerIdWrapper : public v8::Debug::ClientData {
@@ -56,12 +59,17 @@
}
void DebuggerAgentManager::V8DebugHostDispatchHandler() {
+ if (in_host_dispatch_handler_) {
+ return;
+ }
+ in_host_dispatch_handler_ = true;
if (DebuggerAgentManager::message_loop_dispatch_handler_
&& attached_agents_) {
DebuggerAgentImpl::RunWithDeferredMessages(
*attached_agents_,
message_loop_dispatch_handler_);
}
+ in_host_dispatch_handler_ = false;
}
// static
« no previous file with comments | « webkit/glue/devtools/debugger_agent_manager.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698