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

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

Issue 2003433004: Remove dependency from ConsoleMessage to workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1999463002
Patch Set: messageN Created 4 years, 7 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/InspectorWorkerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
index 3bd8ca0708a01c7a228b8a03f442451d47c2b63b..c48a766aa7d24a488f7f47f66972b63b7b114d28 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
@@ -32,7 +32,6 @@
#include "core/dom/Document.h"
#include "core/inspector/InspectedFrames.h"
-#include "core/inspector/PageConsoleAgent.h"
#include "platform/weborigin/KURL.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
@@ -45,15 +44,9 @@ static const char workerInspectionEnabled[] = "workerInspectionEnabled";
static const char waitForDebuggerOnStart[] = "waitForDebuggerOnStart";
};
-InspectorWorkerAgent* InspectorWorkerAgent::create(InspectedFrames* inspectedFrames, PageConsoleAgent* consoleAgent)
-{
- return new InspectorWorkerAgent(inspectedFrames, consoleAgent);
-}
-
-InspectorWorkerAgent::InspectorWorkerAgent(InspectedFrames* inspectedFrames, PageConsoleAgent* consoleAgent)
+InspectorWorkerAgent::InspectorWorkerAgent(InspectedFrames* inspectedFrames)
: InspectorBaseAgent<InspectorWorkerAgent, protocol::Frontend::Worker>("Worker")
, m_inspectedFrames(inspectedFrames)
- , m_consoleAgent(consoleAgent)
{
}
@@ -182,15 +175,9 @@ void InspectorWorkerAgent::dispatchMessageFromWorker(WorkerInspectorProxy* proxy
frontend()->dispatchMessageFromWorker(proxy->inspectorId(), message);
}
-void InspectorWorkerAgent::workerConsoleAgentEnabled(WorkerInspectorProxy* proxy)
-{
- m_consoleAgent->workerConsoleAgentEnabled(proxy);
-}
-
DEFINE_TRACE(InspectorWorkerAgent)
{
visitor->trace(m_connectedProxies);
- visitor->trace(m_consoleAgent);
visitor->trace(m_inspectedFrames);
InspectorBaseAgent<InspectorWorkerAgent, protocol::Frontend::Worker>::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698