summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/Storage/StorageAreaMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/WebProcess/Storage/StorageAreaMap.h')
-rw-r--r--Source/WebKit2/WebProcess/Storage/StorageAreaMap.h14
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;