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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 1367623006: DevTools: extract V8DebuggerAgent interface, move it under .../inspector/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
index 840b6473941a35dfed6b551caa472e2d0abd61ee..21fd206572032922efe0db32ccffaff940be88f1 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -31,6 +31,7 @@
#include "core/inspector/InspectorDebuggerAgent.h"
#include "bindings/core/v8/V8Binding.h"
+#include "core/inspector/AsyncCallTracker.h"
#include "core/inspector/ScriptAsyncCallStack.h"
#include "core/inspector/v8/V8Debugger.h"
#include "platform/ScriptForbiddenScope.h"
@@ -39,7 +40,7 @@ namespace blink {
InspectorDebuggerAgent::InspectorDebuggerAgent(InjectedScriptManager* injectedScriptManager, V8Debugger* debugger, int contextGroupId)
: InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debugger>("Debugger")
- , m_v8DebuggerAgent(adoptPtrWillBeNoop(new V8DebuggerAgent(injectedScriptManager, debugger, this, contextGroupId)))
+ , m_v8DebuggerAgent(V8DebuggerAgent::create(injectedScriptManager, debugger, this, contextGroupId))
{
}
@@ -53,6 +54,7 @@ InspectorDebuggerAgent::~InspectorDebuggerAgent()
DEFINE_TRACE(InspectorDebuggerAgent)
{
visitor->trace(m_v8DebuggerAgent);
+ visitor->trace(m_asyncCallTracker);
InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debugger>::trace(visitor);
}
@@ -253,6 +255,16 @@ void InspectorDebuggerAgent::debuggerAgentDisabled()
m_instrumentingAgents->setInspectorDebuggerAgent(nullptr);
}
+void InspectorDebuggerAgent::asyncCallTrackingStateChanged(bool tracking)
+{
+ m_asyncCallTracker->asyncCallTrackingStateChanged(tracking);
+}
+
+void InspectorDebuggerAgent::resetAsyncOperations()
+{
+ m_asyncCallTracker->resetAsyncOperations();
+}
+
bool InspectorDebuggerAgent::isPaused()
{
return m_v8DebuggerAgent->isPaused();
@@ -287,6 +299,7 @@ void InspectorDebuggerAgent::didExecuteScript()
void InspectorDebuggerAgent::init()
{
m_v8DebuggerAgent->setInspectorState(m_state);
+ m_asyncCallTracker = adoptPtrWillBeNoop(new AsyncCallTracker(m_v8DebuggerAgent.get(), m_instrumentingAgents.get()));
}
void InspectorDebuggerAgent::setFrontend(InspectorFrontend* frontend)

Powered by Google App Engine
This is Rietveld 408576698