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

Unified Diff: Source/core/inspector/WorkerConsoleAgent.cpp

Issue 464293002: [DevTools] ConsoleMessage storage moved from ConsoleAgent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove-can-generate
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/inspector/WorkerConsoleAgent.h ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/WorkerConsoleAgent.cpp
diff --git a/Source/core/inspector/WorkerConsoleAgent.cpp b/Source/core/inspector/WorkerConsoleAgent.cpp
index c4f9c883f04658e720049af1fb2c2d81ef9e16c6..441fca33790fa637fa030618d0b881e0fb7137a3 100644
--- a/Source/core/inspector/WorkerConsoleAgent.cpp
+++ b/Source/core/inspector/WorkerConsoleAgent.cpp
@@ -31,11 +31,13 @@
#include "config.h"
#include "core/inspector/WorkerConsoleAgent.h"
+#include "core/workers/WorkerGlobalScope.h"
namespace blink {
-WorkerConsoleAgent::WorkerConsoleAgent(InspectorTimelineAgent* timelineAgent, InjectedScriptManager* injectedScriptManager)
+WorkerConsoleAgent::WorkerConsoleAgent(InspectorTimelineAgent* timelineAgent, InjectedScriptManager* injectedScriptManager, WorkerGlobalScope* workerGlobalScope)
: InspectorConsoleAgent(timelineAgent, 0, injectedScriptManager)
+ , m_workerGlobalScope(workerGlobalScope)
{
}
@@ -43,6 +45,11 @@ WorkerConsoleAgent::~WorkerConsoleAgent()
{
}
+ConsoleMessageStorage* WorkerConsoleAgent::messageStorage()
+{
+ return m_workerGlobalScope->messageStorage();
+}
+
void WorkerConsoleAgent::addInspectedNode(ErrorString* error, int)
{
*error = "addInspectedNode is not supported for workers";
« no previous file with comments | « Source/core/inspector/WorkerConsoleAgent.h ('k') | Source/core/inspector/WorkerInspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698