| Index: Source/core/inspector/PageConsoleAgent.h
|
| diff --git a/Source/core/inspector/PageConsoleAgent.h b/Source/core/inspector/PageConsoleAgent.h
|
| index e2b53e2df6e6fa5661ac824f89bfe943bdf60c2f..7fc2a231595a0d3e9079de8adc24c889caf59925 100644
|
| --- a/Source/core/inspector/PageConsoleAgent.h
|
| +++ b/Source/core/inspector/PageConsoleAgent.h
|
| @@ -36,26 +36,32 @@
|
|
|
| namespace blink {
|
|
|
| +class ConsoleMessageStorage;
|
| class InspectorDOMAgent;
|
| +class Page;
|
|
|
| class PageConsoleAgent FINAL : public InspectorConsoleAgent {
|
| WTF_MAKE_NONCOPYABLE(PageConsoleAgent);
|
| public:
|
| - static PassOwnPtrWillBeRawPtr<PageConsoleAgent> create(InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* timelineAgent, InspectorTracingAgent* tracingAgent)
|
| + static PassOwnPtrWillBeRawPtr<PageConsoleAgent> create(InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* timelineAgent, InspectorTracingAgent* tracingAgent, Page* page)
|
| {
|
| - return adoptPtrWillBeNoop(new PageConsoleAgent(injectedScriptManager, domAgent, timelineAgent, tracingAgent));
|
| + return adoptPtrWillBeNoop(new PageConsoleAgent(injectedScriptManager, domAgent, timelineAgent, tracingAgent, page));
|
| }
|
| virtual ~PageConsoleAgent();
|
| virtual void trace(Visitor*) OVERRIDE;
|
|
|
| virtual bool isWorkerAgent() OVERRIDE { return false; }
|
|
|
| +protected:
|
| + virtual ConsoleMessageStorage* messageStorage() OVERRIDE;
|
| +
|
| private:
|
| - PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimelineAgent*, InspectorTracingAgent*);
|
| + PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimelineAgent*, InspectorTracingAgent*, Page*);
|
| virtual void clearMessages(ErrorString*) OVERRIDE;
|
| virtual void addInspectedNode(ErrorString*, int nodeId) OVERRIDE;
|
|
|
| RawPtrWillBeMember<InspectorDOMAgent> m_inspectorDOMAgent;
|
| + Page* m_page;
|
| };
|
|
|
| } // namespace blink
|
|
|