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

Unified Diff: Source/core/inspector/PageRuntimeAgent.h

Issue 1118963002: Revert of DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/inspector/PageDebuggerAgent.cpp ('k') | Source/core/inspector/PageRuntimeAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/PageRuntimeAgent.h
diff --git a/Source/core/inspector/PageRuntimeAgent.h b/Source/core/inspector/PageRuntimeAgent.h
index 2d8706d504aa11e4bdb584acfd8f5e3c245e4c5e..9574e4fdc771fe50bb5158ba42dd9f3f53229464 100644
--- a/Source/core/inspector/PageRuntimeAgent.h
+++ b/Source/core/inspector/PageRuntimeAgent.h
@@ -37,14 +37,14 @@
namespace blink {
-class LocalFrame;
+class InspectorPageAgent;
class SecurityOrigin;
class PageRuntimeAgent final : public InspectorRuntimeAgent {
public:
- static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(LocalFrame* inspectedFrame, InjectedScriptManager* injectedScriptManager, InspectorRuntimeAgent::Client* client, ScriptDebugServer* scriptDebugServer)
+ static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedScriptManager, InspectorRuntimeAgent::Client* client, ScriptDebugServer* scriptDebugServer, InspectorPageAgent* pageAgent)
{
- return adoptPtrWillBeNoop(new PageRuntimeAgent(inspectedFrame, injectedScriptManager, client, scriptDebugServer));
+ return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, client, scriptDebugServer, pageAgent));
}
virtual ~PageRuntimeAgent();
DECLARE_VIRTUAL_TRACE();
@@ -58,14 +58,14 @@
int debuggerId() const { return m_debuggerId; }
private:
- PageRuntimeAgent(LocalFrame*, InjectedScriptManager*, Client*, ScriptDebugServer*);
+ PageRuntimeAgent(InjectedScriptManager*, Client*, ScriptDebugServer*, InspectorPageAgent*);
virtual InjectedScript injectedScriptForEval(ErrorString*, const int* executionContextId) override;
virtual void muteConsole() override;
virtual void unmuteConsole() override;
void reportExecutionContextCreation();
- RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
bool m_mainWorldContextCreated;
int m_debuggerId;
};
« no previous file with comments | « Source/core/inspector/PageDebuggerAgent.cpp ('k') | Source/core/inspector/PageRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698