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

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

Issue 2194063002: [DevTools] Move canExecuteScript to V8DebuggerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698