summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-31 11:52:57 +1000
committerWarwick Allison <warwick.allison@nokia.com>2009-07-31 11:52:57 +1000
commitaa9cf406d62004519ad54596e1c391f9a6439210 (patch)
treedd562b9c296981f2761b76623911be8496c7af84 /src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h
parent987aec28b950e1c9817a20a9dd71afc071cd93ea (diff)
parent56b6a5924008ab5cdbae36e9662eddba923acd5e (diff)
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h')
-rw-r--r--src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h b/src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h
index e2d14f169..d3f078567 100644
--- a/src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h
+++ b/src/3rdparty/webkit/WebCore/storage/StorageAreaImpl.h
@@ -30,31 +30,36 @@
#include "StorageArea.h"
+#include <wtf/RefPtr.h>
+
namespace WebCore {
+ class SecurityOrigin;
+ class StorageMap;
+ class StorageAreaSync;
+
class StorageAreaImpl : public StorageArea {
public:
- static PassRefPtr<StorageArea> create(StorageType, SecurityOrigin*, PassRefPtr<StorageSyncManager>);
+ StorageAreaImpl(StorageType, SecurityOrigin*, PassRefPtr<StorageSyncManager>);
virtual ~StorageAreaImpl();
- virtual PassRefPtr<StorageArea> copy(SecurityOrigin*);
- // The HTML5 DOM Storage API
+ // The HTML5 DOM Storage API (and contains)
virtual unsigned length() const;
virtual String key(unsigned index, ExceptionCode& ec) const;
virtual String getItem(const String& key) const;
virtual void setItem(const String& key, const String& value, ExceptionCode& ec, Frame* sourceFrame);
virtual void removeItem(const String& key, Frame* sourceFrame);
virtual void clear(Frame* sourceFrame);
-
virtual bool contains(const String& key) const;
- virtual void close();
+
+ PassRefPtr<StorageAreaImpl> copy(SecurityOrigin*);
+ void close();
// Could be called from a background thread.
void importItem(const String& key, const String& value);
SecurityOrigin* securityOrigin();
private:
- StorageAreaImpl(StorageType, SecurityOrigin*, PassRefPtr<StorageSyncManager>);
StorageAreaImpl(SecurityOrigin*, StorageAreaImpl*);
void blockUntilImportComplete() const;