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

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

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed debug build 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 9574e4fdc771fe50bb5158ba42dd9f3f53229464..2d8706d504aa11e4bdb584acfd8f5e3c245e4c5e 100644
--- a/Source/core/inspector/PageRuntimeAgent.h
+++ b/Source/core/inspector/PageRuntimeAgent.h
@@ -37,14 +37,14 @@
namespace blink {
-class InspectorPageAgent;
+class LocalFrame;
class SecurityOrigin;
class PageRuntimeAgent final : public InspectorRuntimeAgent {
public:
- static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedScriptManager, InspectorRuntimeAgent::Client* client, ScriptDebugServer* scriptDebugServer, InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(LocalFrame* inspectedFrame, InjectedScriptManager* injectedScriptManager, InspectorRuntimeAgent::Client* client, ScriptDebugServer* scriptDebugServer)
{
- return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, client, scriptDebugServer, pageAgent));
+ return adoptPtrWillBeNoop(new PageRuntimeAgent(inspectedFrame, injectedScriptManager, client, scriptDebugServer));
}
virtual ~PageRuntimeAgent();
DECLARE_VIRTUAL_TRACE();
@@ -58,14 +58,14 @@ public:
int debuggerId() const { return m_debuggerId; }
private:
- PageRuntimeAgent(InjectedScriptManager*, Client*, ScriptDebugServer*, InspectorPageAgent*);
+ PageRuntimeAgent(LocalFrame*, InjectedScriptManager*, Client*, ScriptDebugServer*);
virtual InjectedScript injectedScriptForEval(ErrorString*, const int* executionContextId) override;
virtual void muteConsole() override;
virtual void unmuteConsole() override;
void reportExecutionContextCreation();
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
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