summaryrefslogtreecommitdiff
path: root/Source/WebCore/storage/StorageNamespace.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/storage/StorageNamespace.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/storage/StorageNamespace.h')
-rw-r--r--Source/WebCore/storage/StorageNamespace.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/Source/WebCore/storage/StorageNamespace.h b/Source/WebCore/storage/StorageNamespace.h
index 1aef9e6fe..ead71a476 100644
--- a/Source/WebCore/storage/StorageNamespace.h
+++ b/Source/WebCore/storage/StorageNamespace.h
@@ -23,36 +23,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageNamespace_h
-#define StorageNamespace_h
+#pragma once
#include <wtf/Forward.h>
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class Page;
-class PageGroup;
-class SecurityOrigin;
class StorageArea;
+struct SecurityOriginData;
class StorageNamespace : public RefCounted<StorageNamespace> {
public:
- static PassRefPtr<StorageNamespace> localStorageNamespace(PageGroup*);
- static PassRefPtr<StorageNamespace> transientLocalStorageNamespace(PageGroup*, SecurityOrigin*);
- static PassRefPtr<StorageNamespace> sessionStorageNamespace(Page*);
-
virtual ~StorageNamespace() { }
- virtual PassRefPtr<StorageArea> storageArea(PassRefPtr<SecurityOrigin>) = 0;
- virtual PassRefPtr<StorageNamespace> copy(Page* newPage) = 0;
- virtual void close() = 0;
- virtual void clearOriginForDeletion(SecurityOrigin*) = 0;
- virtual void clearAllOriginsForDeletion() = 0;
- virtual void sync() = 0;
- virtual void closeIdleLocalStorageDatabases() { }
+ virtual RefPtr<StorageArea> storageArea(const SecurityOriginData&) = 0;
+ virtual RefPtr<StorageNamespace> copy(Page* newPage) = 0;
};
} // namespace WebCore
-
-#endif // StorageNamespace_h