Index: Source/core/inspector/PageConsoleAgent.h |
diff --git a/Source/core/inspector/PageConsoleAgent.h b/Source/core/inspector/PageConsoleAgent.h |
index 59a2e5ba3dfda06b635ae811857a0726afbfe069..8a4b409a289cc2faa0d828b46709937312e4d0e4 100644 |
--- a/Source/core/inspector/PageConsoleAgent.h |
+++ b/Source/core/inspector/PageConsoleAgent.h |
@@ -38,24 +38,34 @@ |
namespace WebCore { |
class InspectorDOMAgent; |
+class InspectorDOMController; |
class PageConsoleAgent : public InspectorConsoleAgent { |
WTF_MAKE_NONCOPYABLE(PageConsoleAgent); |
public: |
- static PassOwnPtr<PageConsoleAgent> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent) |
- { |
- return adoptPtr(new PageConsoleAgent(instrumentingAgents, state, injectedScriptManager, domAgent)); |
- } |
+ static PassRefPtr<PageConsoleAgent> create(InstrumentingAgents*, InspectorState*, InjectedScriptManager*, PassRefPtr<InspectorDOMAgent>); |
virtual ~PageConsoleAgent(); |
virtual bool isWorkerAgent() OVERRIDE { return false; } |
private: |
- PageConsoleAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*, InspectorDOMAgent*); |
+ PageConsoleAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManager*, PassRefPtr<InspectorDOMAgent>); |
virtual void clearMessages(ErrorString*); |
virtual void addInspectedNode(ErrorString*, int nodeId); |
- InspectorDOMAgent* m_inspectorDOMAgent; |
+ RefPtr<InspectorDOMAgent> m_inspectorDOMAgent; |
+}; |
+ |
+class PageConsoleController: public InspectorConsoleController { |
+public: |
+ |
+ static PassOwnPtr<PageConsoleController> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager, InspectorDOMController* domController) |
+ { |
+ return adoptPtr(new PageConsoleController(instrumentingAgents, compositeState, injectedScriptManager, domController)); |
+ } |
+ |
+protected: |
+ PageConsoleController(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*, InspectorDOMController*); |
}; |
} // namespace WebCore |