diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/storage/StorageEvent.h')
-rw-r--r-- | src/3rdparty/webkit/WebCore/storage/StorageEvent.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/3rdparty/webkit/WebCore/storage/StorageEvent.h b/src/3rdparty/webkit/WebCore/storage/StorageEvent.h index ee3d5ad21..703fb5aff 100644 --- a/src/3rdparty/webkit/WebCore/storage/StorageEvent.h +++ b/src/3rdparty/webkit/WebCore/storage/StorageEvent.h @@ -29,22 +29,17 @@ #if ENABLE(DOM_STORAGE) #include "Event.h" -#include "Storage.h" +#include "PlatformString.h" namespace WebCore { class DOMWindow; + class Storage; class StorageEvent : public Event { public: - static PassRefPtr<StorageEvent> create() - { - return adoptRef(new StorageEvent); - } - static PassRefPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source, Storage* storageArea) - { - return adoptRef(new StorageEvent(type, key, oldValue, newValue, uri, source, storageArea)); - } + static PassRefPtr<StorageEvent> create(); + static PassRefPtr<StorageEvent> create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source, Storage* storageArea); const String& key() const { return m_key; } const String& oldValue() const { return m_oldValue; } @@ -61,7 +56,7 @@ namespace WebCore { virtual bool isStorageEvent() const { return true; } private: - StorageEvent() { } + StorageEvent(); StorageEvent(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source, Storage* storageArea); String m_key; |