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

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

Issue 1899933003: [DevTools] Introduce InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: export, comment Created 4 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
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 fcd241e0be87f6b0098696a08de99e5807fd95f8..a8248eb1acd20fd637c3efa56940697aea27b8ce 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -304,22 +304,17 @@ void InspectorDebuggerAgent::asyncTaskFinished(void* task)
}
// InspectorBaseAgent overrides.
-void InspectorDebuggerAgent::setState(protocol::DictionaryValue* state)
+void InspectorDebuggerAgent::init(InstrumentingAgents* instrumentingAgents, protocol::Frontend* baseFrontend, protocol::Dispatcher* dispatcher, protocol::DictionaryValue* state)
{
- InspectorBaseAgent::setState(state);
+ InspectorBaseAgent::init(instrumentingAgents, baseFrontend, dispatcher, state);
m_v8DebuggerAgent->setInspectorState(m_state);
+ m_v8DebuggerAgent->setFrontend(frontend());
}
-void InspectorDebuggerAgent::setFrontend(protocol::Frontend* frontend)
-{
- InspectorBaseAgent::setFrontend(frontend);
- m_v8DebuggerAgent->setFrontend(protocol::Frontend::Debugger::from(frontend));
-}
-
-void InspectorDebuggerAgent::clearFrontend()
+void InspectorDebuggerAgent::dispose()
{
m_v8DebuggerAgent->clearFrontend();
- InspectorBaseAgent::clearFrontend();
+ InspectorBaseAgent::dispose();
}
void InspectorDebuggerAgent::restore()

Powered by Google App Engine
This is Rietveld 408576698