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

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

Issue 1907663005: [DevTools] Move v8-related instrumentation from agents to InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1889533002
Patch Set: profiler agent restore starts instrumenting 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 0087ef7095e68b008ab7dd2d9970d4fd4aac918b..3df7e846701aa5b06b89fce8de0ad15ecb98b429 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -60,14 +60,12 @@ DEFINE_TRACE(InspectorDebuggerAgent)
void InspectorDebuggerAgent::enable(ErrorString* errorString)
{
m_v8DebuggerAgent->enable(errorString);
- m_instrumentingAgents->setInspectorDebuggerAgent(this);
m_state->setBoolean(DebuggerAgentState::debuggerEnabled, true);
}
void InspectorDebuggerAgent::disable(ErrorString* errorString)
{
m_state->setBoolean(DebuggerAgentState::debuggerEnabled, false);
- m_instrumentingAgents->setInspectorDebuggerAgent(nullptr);
m_v8DebuggerAgent->disable(errorString);
}
@@ -257,43 +255,6 @@ void InspectorDebuggerAgent::setBlackboxedRanges(
m_v8DebuggerAgent->setBlackboxedRanges(errorString, inScriptId, std::move(inPositions));
}
-void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directiveText)
-{
- OwnPtr<protocol::DictionaryValue> directive = protocol::DictionaryValue::create();
- directive->setString("directiveText", directiveText);
- m_v8DebuggerAgent->breakProgramOnException(protocol::Debugger::Paused::ReasonEnum::CSPViolation, directive.release());
-}
-
-void InspectorDebuggerAgent::asyncTaskScheduled(const String& taskName, void* task)
-{
- m_v8DebuggerAgent->asyncTaskScheduled(taskName, task, false);
-}
-
-void InspectorDebuggerAgent::asyncTaskScheduled(const String& operationName, void* task, bool recurring)
-{
- m_v8DebuggerAgent->asyncTaskScheduled(operationName, task, recurring);
-}
-
-void InspectorDebuggerAgent::asyncTaskCanceled(void* task)
-{
- m_v8DebuggerAgent->asyncTaskCanceled(task);
-}
-
-void InspectorDebuggerAgent::allAsyncTasksCanceled()
-{
- m_v8DebuggerAgent->allAsyncTasksCanceled();
-}
-
-void InspectorDebuggerAgent::asyncTaskStarted(void* task)
-{
- m_v8DebuggerAgent->asyncTaskStarted(task);
-}
-
-void InspectorDebuggerAgent::asyncTaskFinished(void* task)
-{
- m_v8DebuggerAgent->asyncTaskFinished(task);
-}
-
// InspectorBaseAgent overrides.
void InspectorDebuggerAgent::init(InstrumentingAgents* instrumentingAgents, protocol::Frontend* baseFrontend, protocol::Dispatcher* dispatcher, protocol::DictionaryValue* state)
{

Powered by Google App Engine
This is Rietveld 408576698