diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h b/chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h index 4c79cefe60e..1d213f45e33 100644 --- a/chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h +++ b/chromium/third_party/WebKit/Source/core/inspector/InspectorDOMStorageAgent.h @@ -36,7 +36,7 @@ namespace WebCore { -class Frame; +class LocalFrame; class InspectorFrontend; class InspectorPageAgent; class InstrumentingAgents; @@ -46,37 +46,35 @@ class StorageArea; typedef String ErrorString; -class InspectorDOMStorageAgent : public InspectorBaseAgent<InspectorDOMStorageAgent>, public InspectorBackendDispatcher::DOMStorageCommandHandler { +class InspectorDOMStorageAgent FINAL : public InspectorBaseAgent<InspectorDOMStorageAgent>, public InspectorBackendDispatcher::DOMStorageCommandHandler { public: - static PassOwnPtr<InspectorDOMStorageAgent> create(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state) + static PassOwnPtr<InspectorDOMStorageAgent> create(InspectorPageAgent* pageAgent) { - return adoptPtr(new InspectorDOMStorageAgent(instrumentingAgents, pageAgent, state)); + return adoptPtr(new InspectorDOMStorageAgent(pageAgent)); } - ~InspectorDOMStorageAgent(); + virtual ~InspectorDOMStorageAgent(); - virtual void setFrontend(InspectorFrontend*); - virtual void clearFrontend(); + virtual void setFrontend(InspectorFrontend*) OVERRIDE; + virtual void clearFrontend() OVERRIDE; + virtual void restore() OVERRIDE; // Called from the front-end. - virtual void enable(ErrorString*); - virtual void disable(ErrorString*); - virtual void getDOMStorageItems(ErrorString*, const RefPtr<JSONObject>& storageId, RefPtr<TypeBuilder::Array<TypeBuilder::Array<String> > >& items); - virtual void setDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, const String& key, const String& value); - virtual void removeDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, const String& key); - - // Called from the injected script. - String storageId(Storage*); - PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bool isLocalStorage); + virtual void enable(ErrorString*) OVERRIDE; + virtual void disable(ErrorString*) OVERRIDE; + virtual void getDOMStorageItems(ErrorString*, const RefPtr<JSONObject>& storageId, RefPtr<TypeBuilder::Array<TypeBuilder::Array<String> > >& items) OVERRIDE; + virtual void setDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, const String& key, const String& value) OVERRIDE; + virtual void removeDOMStorageItem(ErrorString*, const RefPtr<JSONObject>& storageId, const String& key) OVERRIDE; // Called from InspectorInstrumentation void didDispatchDOMStorageEvent(const String& key, const String& oldValue, const String& newValue, StorageType, SecurityOrigin*); private: - InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorCompositeState*); + InspectorDOMStorageAgent(InspectorPageAgent*); bool isEnabled() const; - PassOwnPtr<StorageArea> findStorageArea(ErrorString*, const RefPtr<JSONObject>&, Frame*&); + PassOwnPtrWillBeRawPtr<StorageArea> findStorageArea(ErrorString*, const RefPtr<JSONObject>&, LocalFrame*&); + PassRefPtr<TypeBuilder::DOMStorage::StorageId> storageId(SecurityOrigin*, bool isLocalStorage); InspectorPageAgent* m_pageAgent; InspectorFrontend* m_frontend; |