Index: Source/core/inspector/InspectorFileSystemAgent.h |
diff --git a/Source/core/inspector/InspectorFileSystemAgent.h b/Source/core/inspector/InspectorFileSystemAgent.h |
index 4b38b8ca47ae377dc4679ead04055b2bbb6bebf8..15bda4a153603f7a9b8d8c6bd979fce3aee605d8 100644 |
--- a/Source/core/inspector/InspectorFileSystemAgent.h |
+++ b/Source/core/inspector/InspectorFileSystemAgent.h |
@@ -40,12 +40,13 @@ namespace WebCore { |
class InspectorFrontend; |
class InspectorPageAgent; |
+class InspectorPageFactory; |
class ScriptExecutionContext; |
class SecurityOrigin; |
-class InspectorFileSystemAgent : public InspectorBaseAgent<InspectorFileSystemAgent>, public InspectorBackendDispatcher::FileSystemCommandHandler { |
+class InspectorFileSystemAgent : public InspectorBaseAgent, public InspectorBackendDispatcher::FileSystemCommandHandler { |
public: |
- static PassOwnPtr<InspectorFileSystemAgent> create(InstrumentingAgents*, InspectorPageAgent*, InspectorCompositeState*); |
+ static PassRefPtr<InspectorFileSystemAgent> create(InstrumentingAgents*, InspectorState*, PassRefPtr<InspectorPageAgent>); |
virtual ~InspectorFileSystemAgent(); |
virtual void enable(ErrorString*) OVERRIDE; |
@@ -61,14 +62,26 @@ public: |
virtual void restore() OVERRIDE; |
private: |
- InspectorFileSystemAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorCompositeState*); |
+ InspectorFileSystemAgent(InstrumentingAgents*, InspectorState*, PassRefPtr<InspectorPageAgent>); |
bool assertEnabled(ErrorString*); |
ScriptExecutionContext* assertScriptExecutionContextForOrigin(ErrorString*, SecurityOrigin*); |
- InspectorPageAgent* m_pageAgent; |
+ RefPtr<InspectorPageAgent> m_pageAgent; |
bool m_enabled; |
}; |
+class InspectorFileSystemFactory : public InspectorBaseFactory<InspectorFileSystemFactory, InspectorFileSystemAgent> { |
+public: |
+ |
+ static PassOwnPtr<InspectorFileSystemFactory> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InspectorPageFactory* pageFactory) |
+ { |
+ return adoptPtr(new InspectorFileSystemFactory(instrumentingAgents, compositeState, pageFactory)); |
+ } |
+ |
+protected: |
+ InspectorFileSystemFactory(InstrumentingAgents*, InspectorCompositeState*, InspectorPageFactory*); |
+}; |
+ |
} // namespace WebCore |
#endif // InspectorFileSystemAgent_h |