| Index: Source/core/inspector/PageRuntimeAgent.h
|
| diff --git a/Source/core/inspector/PageRuntimeAgent.h b/Source/core/inspector/PageRuntimeAgent.h
|
| index b02d0d4d0ffb6fadecae52668ccd8b67496aee6e..4f4a2ea8c884c744ec421cdb81bcc3645db6998d 100644
|
| --- a/Source/core/inspector/PageRuntimeAgent.h
|
| +++ b/Source/core/inspector/PageRuntimeAgent.h
|
| @@ -39,13 +39,14 @@
|
|
|
| class InspectorClient;
|
| class InspectorPageAgent;
|
| +class Page;
|
| class SecurityOrigin;
|
|
|
| class PageRuntimeAgent final : public InspectorRuntimeAgent {
|
| public:
|
| - static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedScriptManager, InspectorClient* client, ScriptDebugServer* scriptDebugServer, InspectorPageAgent* pageAgent)
|
| + static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedScriptManager, InspectorClient* client, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent)
|
| {
|
| - return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, client, scriptDebugServer, pageAgent));
|
| + return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, client, scriptDebugServer, page, pageAgent));
|
| }
|
| virtual ~PageRuntimeAgent();
|
| virtual void trace(Visitor*) override;
|
| @@ -58,7 +59,7 @@
|
| void willReleaseScriptContext(LocalFrame*, ScriptState*);
|
|
|
| private:
|
| - PageRuntimeAgent(InjectedScriptManager*, InspectorClient*, ScriptDebugServer*, InspectorPageAgent*);
|
| + PageRuntimeAgent(InjectedScriptManager*, InspectorClient*, ScriptDebugServer*, Page*, InspectorPageAgent*);
|
|
|
| virtual InjectedScript injectedScriptForEval(ErrorString*, const int* executionContextId) override;
|
| virtual void muteConsole() override;
|
| @@ -66,6 +67,7 @@
|
| void reportExecutionContextCreation();
|
|
|
| InspectorClient* m_client;
|
| + RawPtrWillBeMember<Page> m_inspectedPage;
|
| RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
|
| bool m_mainWorldContextCreated;
|
| int m_debuggerId;
|
|
|