Chromium Code Reviews| Index: Source/core/inspector/PageRuntimeAgent.h |
| diff --git a/Source/core/inspector/PageRuntimeAgent.h b/Source/core/inspector/PageRuntimeAgent.h |
| index 9574e4fdc771fe50bb5158ba42dd9f3f53229464..e2c7cb511e636f5a175f85a590787f5da569034d 100644 |
| --- a/Source/core/inspector/PageRuntimeAgent.h |
| +++ b/Source/core/inspector/PageRuntimeAgent.h |
| @@ -37,14 +37,13 @@ |
| namespace blink { |
| -class InspectorPageAgent; |
| class SecurityOrigin; |
|
yurys
2015/04/24 08:54:41
class LocalFrame
|
| 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 +57,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; |
| }; |