| Index: Source/core/inspector/PageConsoleAgent.cpp
|
| diff --git a/Source/core/inspector/PageConsoleAgent.cpp b/Source/core/inspector/PageConsoleAgent.cpp
|
| index e5edadf47d856e7ac5d56a55e5eb0e49b1973f04..256c8bdc54fec5ff88cddb2ee788cb1e5fe519f6 100644
|
| --- a/Source/core/inspector/PageConsoleAgent.cpp
|
| +++ b/Source/core/inspector/PageConsoleAgent.cpp
|
| @@ -39,7 +39,12 @@
|
|
|
| namespace WebCore {
|
|
|
| -PageConsoleAgent::PageConsoleAgent(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptManager, InspectorDOMAgent* domAgent)
|
| +PassRefPtr<PageConsoleAgent> PageConsoleAgent::create(InstrumentingAgents* instrumentingAgents, InspectorState* state, InjectedScriptManager* injectedScriptManager, PassRefPtr<InspectorDOMAgent> domAgent)
|
| +{
|
| + return adoptRef(new PageConsoleAgent(instrumentingAgents, state, injectedScriptManager, domAgent));
|
| +}
|
| +
|
| +PageConsoleAgent::PageConsoleAgent(InstrumentingAgents* instrumentingAgents, InspectorState* state, InjectedScriptManager* injectedScriptManager, PassRefPtr<InspectorDOMAgent> domAgent)
|
| : InspectorConsoleAgent(instrumentingAgents, state, injectedScriptManager)
|
| , m_inspectorDOMAgent(domAgent)
|
| {
|
| @@ -84,4 +89,10 @@ void PageConsoleAgent::addInspectedNode(ErrorString* errorString, int nodeId)
|
| m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(new InspectableNode(node)));
|
| }
|
|
|
| +PageConsoleController::PageConsoleController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager, InspectorDOMController* domController)
|
| + : InspectorConsoleController(instrumentingAgents, compositeState)
|
| +{
|
| + setAgent(PageConsoleAgent::create(m_instrumentingAgents, m_state, injectedScriptManager, domController->getAgent()));
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|