| Index: Source/core/inspector/PageRuntimeAgent.cpp
|
| diff --git a/Source/core/inspector/PageRuntimeAgent.cpp b/Source/core/inspector/PageRuntimeAgent.cpp
|
| index c6e81e5e446df4a218d40de6f29b1fc639d78474..bcf78c2c58e265d822d51544fe377ba1b68e71a9 100644
|
| --- a/Source/core/inspector/PageRuntimeAgent.cpp
|
| +++ b/Source/core/inspector/PageRuntimeAgent.cpp
|
| @@ -51,7 +51,12 @@ namespace PageRuntimeAgentState {
|
| static const char runtimeEnabled[] = "runtimeEnabled";
|
| };
|
|
|
| -PageRuntimeAgent::PageRuntimeAgent(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent)
|
| +PassRefPtr<PageRuntimeAgent> PageRuntimeAgent::create(InstrumentingAgents* instrumentingAgents, InspectorState* state, Page* page, PassRefPtr<InspectorPageAgent> pageAgent, InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer)
|
| +{
|
| + return adoptRef(new PageRuntimeAgent(instrumentingAgents, state, page, pageAgent, injectedScriptManager, scriptDebugServer));
|
| +}
|
| +
|
| +PageRuntimeAgent::PageRuntimeAgent(InstrumentingAgents* instrumentingAgents, InspectorState* state, Page* page, PassRefPtr<InspectorPageAgent> pageAgent, InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer)
|
| : InspectorRuntimeAgent(instrumentingAgents, state, injectedScriptManager, scriptDebugServer)
|
| , m_inspectedPage(page)
|
| , m_pageAgent(pageAgent)
|
| @@ -190,5 +195,11 @@ void PageRuntimeAgent::notifyContextCreated(const String& frameId, ScriptState*
|
| .release());
|
| }
|
|
|
| +PageRuntimeController::PageRuntimeController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, Page* page, InspectorPageController* pageController, InjectedScriptManager* injectedScriptManager, ScriptDebugServer* scriptDebugServer)
|
| + : InspectorRuntimeController(instrumentingAgents, compositeState)
|
| +{
|
| + setAgent(PageRuntimeAgent::create(m_instrumentingAgents, m_state, page, pageController->getAgent(), injectedScriptManager, scriptDebugServer));
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
|
|