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

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

Issue 892693006: Revert of DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/PageConsoleAgent.h ('k') | Source/core/inspector/PageDebuggerAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/PageConsoleAgent.cpp
diff --git a/Source/core/inspector/PageConsoleAgent.cpp b/Source/core/inspector/PageConsoleAgent.cpp
index 4783c20b786059ed228332e1307e4bf8bf5a8400..fd47a3904b0fa075c2370a237bfa8c62e8b22c76 100644
--- a/Source/core/inspector/PageConsoleAgent.cpp
+++ b/Source/core/inspector/PageConsoleAgent.cpp
@@ -42,17 +42,17 @@
#include "core/inspector/InjectedScriptHost.h"
#include "core/inspector/InjectedScriptManager.h"
#include "core/inspector/InspectorDOMAgent.h"
-#include "core/inspector/InspectorPageAgent.h"
+#include "core/page/Page.h"
#include "core/workers/WorkerInspectorProxy.h"
namespace blink {
int PageConsoleAgent::s_enabledAgentCount = 0;
-PageConsoleAgent::PageConsoleAgent(InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent)
+PageConsoleAgent::PageConsoleAgent(InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent, Page* page)
: InspectorConsoleAgent(injectedScriptManager)
, m_inspectorDOMAgent(domAgent)
- , m_pageAgent(pageAgent)
+ , m_page(page)
{
}
@@ -67,7 +67,7 @@
void PageConsoleAgent::trace(Visitor* visitor)
{
visitor->trace(m_inspectorDOMAgent);
- visitor->trace(m_pageAgent);
+ visitor->trace(m_page);
InspectorConsoleAgent::trace(visitor);
}
@@ -87,7 +87,7 @@
void PageConsoleAgent::clearMessages(ErrorString* errorString)
{
m_inspectorDOMAgent->releaseDanglingNodes();
- messageStorage()->clear(m_pageAgent->inspectedFrame()->document());
+ messageStorage()->clear(m_page->deprecatedLocalMainFrame()->document());
}
void PageConsoleAgent::workerConsoleAgentEnabled(WorkerGlobalScopeProxy* proxy)
@@ -97,7 +97,7 @@
ConsoleMessageStorage* PageConsoleAgent::messageStorage()
{
- return &m_pageAgent->frameHost()->consoleMessageStorage();
+ return &m_page->frameHost().consoleMessageStorage();
}
void PageConsoleAgent::workerTerminated(WorkerInspectorProxy* workerInspectorProxy)
« no previous file with comments | « Source/core/inspector/PageConsoleAgent.h ('k') | Source/core/inspector/PageDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698