summaryrefslogtreecommitdiff
path: root/Source/WebCore/storage/StorageNamespace.h
diff options
context:
space:
mode:
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