Index: third_party/WebKit/Source/core/inspector/InspectorSession.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp |
index 2e07600344ded6319880171faa99a9ba8f337369..62d197cbb2a118d183a85a0c976729f16314f032 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp |
@@ -7,7 +7,6 @@ |
#include "bindings/core/v8/ScriptController.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/UseCounter.h" |
-#include "core/inspector/InspectedFrames.h" |
#include "core/inspector/InspectorBaseAgent.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "platform/inspector_protocol/Parser.h" |
@@ -20,13 +19,12 @@ namespace { |
const char kV8StateKey[] = "v8"; |
} |
-InspectorSession::InspectorSession(Client* client, InspectedFrames* inspectedFrames, InstrumentingAgents* instrumentingAgents, int sessionId, bool autoFlush, V8Debugger* debugger, int contextGroupId, const String* savedState) |
+InspectorSession::InspectorSession(Client* client, InstrumentingAgents* instrumentingAgents, int sessionId, bool autoFlush, V8Debugger* debugger, int contextGroupId, const String* savedState) |
: m_client(client) |
, m_v8Session(nullptr) |
, m_sessionId(sessionId) |
, m_autoFlush(autoFlush) |
, m_disposed(false) |
- , m_inspectedFrames(inspectedFrames) |
, m_instrumentingAgents(instrumentingAgents) |
, m_inspectorBackendDispatcher(new protocol::UberDispatcher(this)) |
{ |
@@ -129,15 +127,9 @@ void InspectorSession::resumeStartup() |
m_client->resumeStartup(); |
} |
-bool InspectorSession::canExecuteScripts() |
-{ |
- return m_inspectedFrames ? m_inspectedFrames->root()->script().canExecuteScripts(NotAboutToExecuteScript) : true; |
-} |
- |
DEFINE_TRACE(InspectorSession) |
{ |
visitor->trace(m_instrumentingAgents); |
- visitor->trace(m_inspectedFrames); |
visitor->trace(m_agents); |
} |