diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/WebProcess/Storage/StorageAreaMap.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebKit2/WebProcess/Storage/StorageAreaMap.h')
-rw-r--r-- | Source/WebKit2/WebProcess/Storage/StorageAreaMap.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/WebKit2/WebProcess/Storage/StorageAreaMap.h b/Source/WebKit2/WebProcess/Storage/StorageAreaMap.h index 0d6c50616..b9e43e807 100644 --- a/Source/WebKit2/WebProcess/Storage/StorageAreaMap.h +++ b/Source/WebKit2/WebProcess/Storage/StorageAreaMap.h @@ -31,8 +31,8 @@ #include <WebCore/StorageArea.h> #include <wtf/Forward.h> #include <wtf/HashCountedSet.h> -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> +#include <wtf/RefPtr.h> namespace WebCore { class SecurityOrigin; @@ -46,7 +46,7 @@ class StorageNamespaceImpl; class StorageAreaMap : public RefCounted<StorageAreaMap>, private IPC::MessageReceiver { public: - static PassRefPtr<StorageAreaMap> create(StorageNamespaceImpl*, PassRefPtr<WebCore::SecurityOrigin>); + static Ref<StorageAreaMap> create(StorageNamespaceImpl*, Ref<WebCore::SecurityOrigin>&&); ~StorageAreaMap(); WebCore::StorageType storageType() const { return m_storageType; } @@ -59,11 +59,13 @@ public: void clear(WebCore::Frame* sourceFrame, StorageAreaImpl* sourceArea); bool contains(const String& key); + const WebCore::SecurityOrigin& securityOrigin() const { return m_securityOrigin.get(); } + private: - StorageAreaMap(StorageNamespaceImpl*, PassRefPtr<WebCore::SecurityOrigin>); + StorageAreaMap(StorageNamespaceImpl*, Ref<WebCore::SecurityOrigin>&&); // IPC::MessageReceiver - virtual void didReceiveMessage(IPC::Connection*, IPC::MessageDecoder&) override; + void didReceiveMessage(IPC::Connection&, IPC::Decoder&) override; void didGetValues(uint64_t storageMapSeed); void didSetItem(uint64_t storageMapSeed, const String& key, bool quotaError); @@ -82,12 +84,14 @@ private: void dispatchSessionStorageEvent(uint64_t sourceStorageAreaID, const String& key, const String& oldValue, const String& newValue, const String& urlString); void dispatchLocalStorageEvent(uint64_t sourceStorageAreaID, const String& key, const String& oldValue, const String& newValue, const String& urlString); + Ref<StorageNamespaceImpl> m_storageNamespace; + uint64_t m_storageMapID; WebCore::StorageType m_storageType; uint64_t m_storageNamespaceID; unsigned m_quotaInBytes; - RefPtr<WebCore::SecurityOrigin> m_securityOrigin; + Ref<WebCore::SecurityOrigin> m_securityOrigin; RefPtr<WebCore::StorageMap> m_storageMap; |