From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebKit2/WebProcess/Storage/StorageAreaMap.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Source/WebKit2/WebProcess/Storage/StorageAreaMap.h') 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 #include #include -#include #include +#include namespace WebCore { class SecurityOrigin; @@ -46,7 +46,7 @@ class StorageNamespaceImpl; class StorageAreaMap : public RefCounted, private IPC::MessageReceiver { public: - static PassRefPtr create(StorageNamespaceImpl*, PassRefPtr); + static Ref create(StorageNamespaceImpl*, Ref&&); ~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); + StorageAreaMap(StorageNamespaceImpl*, Ref&&); // 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 m_storageNamespace; + uint64_t m_storageMapID; WebCore::StorageType m_storageType; uint64_t m_storageNamespaceID; unsigned m_quotaInBytes; - RefPtr m_securityOrigin; + Ref m_securityOrigin; RefPtr m_storageMap; -- cgit v1.2.1