Index: Source/core/inspector/InspectorFileSystemAgent.cpp |
diff --git a/Source/core/inspector/InspectorFileSystemAgent.cpp b/Source/core/inspector/InspectorFileSystemAgent.cpp |
index 1ff8176cbefa152e573208a9779d7faa16ab0ddb..7810fd7122755c5ef247fd295c41edd16fdab808 100644 |
--- a/Source/core/inspector/InspectorFileSystemAgent.cpp |
+++ b/Source/core/inspector/InspectorFileSystemAgent.cpp |
@@ -600,9 +600,9 @@ bool DeleteEntryRequest::didDeleteEntry() |
} // anonymous namespace |
// static |
-PassOwnPtr<InspectorFileSystemAgent> InspectorFileSystemAgent::create(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state) |
+PassRefPtr<InspectorFileSystemAgent> InspectorFileSystemAgent::create(InstrumentingAgents* instrumentingAgents, InspectorState* state, PassRefPtr<InspectorPageAgent> pageAgent) |
{ |
- return adoptPtr(new InspectorFileSystemAgent(instrumentingAgents, pageAgent, state)); |
+ return adoptRef(new InspectorFileSystemAgent(instrumentingAgents, state, pageAgent)); |
} |
InspectorFileSystemAgent::~InspectorFileSystemAgent() |
@@ -700,8 +700,8 @@ void InspectorFileSystemAgent::restore() |
m_enabled = m_state->getBoolean(FileSystemAgentState::fileSystemAgentEnabled); |
} |
-InspectorFileSystemAgent::InspectorFileSystemAgent(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state) |
- : InspectorBaseAgent<InspectorFileSystemAgent>("FileSystem", instrumentingAgents, state) |
+InspectorFileSystemAgent::InspectorFileSystemAgent(InstrumentingAgents* instrumentingAgents, InspectorState* state, PassRefPtr<InspectorPageAgent> pageAgent) |
+ : InspectorBaseAgent(instrumentingAgents, state) |
, m_pageAgent(pageAgent) |
, m_enabled(false) |
{ |
@@ -730,4 +730,10 @@ ScriptExecutionContext* InspectorFileSystemAgent::assertScriptExecutionContextFo |
return 0; |
} |
+InspectorFileSystemFactory::InspectorFileSystemFactory(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InspectorPageFactory* pageFactory) |
+ : InspectorBaseFactory<InspectorFileSystemFactory, InspectorFileSystemAgent>("FileSystem", instrumentingAgents, compositeState) |
+{ |
+ setAgent(InspectorFileSystemAgent::create(m_instrumentingAgents, m_state, pageFactory->agent())); |
+} |
+ |
} // namespace WebCore |