Index: webkit/dom_storage/dom_storage_namespace.h |
diff --git a/webkit/dom_storage/dom_storage_namespace.h b/webkit/dom_storage/dom_storage_namespace.h |
index 6063266a498ff242114bd9748f384b59abe15d37..eb588a015dccec6b0a015773ffb0b1d3629dce3b 100644 |
--- a/webkit/dom_storage/dom_storage_namespace.h |
+++ b/webkit/dom_storage/dom_storage_namespace.h |
@@ -18,6 +18,7 @@ namespace dom_storage { |
class DomStorageArea; |
class DomStorageTaskRunner; |
+class SessionStorageDatabase; |
// Container for the set of per-origin Areas. |
// See class comments for DomStorageContext for a larger overview. |
@@ -30,10 +31,16 @@ class DomStorageNamespace |
DomStorageTaskRunner* task_runner); |
// Constructor for a SessionStorage namespace with a non-zero id |
- // and no backing directory on disk. |
+ // and no backing on disk. |
DomStorageNamespace(int64 namespace_id, |
DomStorageTaskRunner* task_runner); |
+ // Constructor for a SessionStorage namespace with a non-zero id and backing |
+ // on disk via |session_storage_database|. |
michaeln
2012/04/22 21:43:35
i see in the .cc file this ctor is being called wi
marja
2012/05/11 12:18:32
Done.
|
+ DomStorageNamespace(int64 namespace_id, |
+ SessionStorageDatabase* session_storage_database, |
+ DomStorageTaskRunner* task_runner); |
+ |
int64 namespace_id() const { return namespace_id_; } |
// Returns the storage area for the given origin, |
@@ -70,10 +77,13 @@ class DomStorageNamespace |
// Returns a pointer to the area holder in our map or NULL. |
AreaHolder* GetAreaHolder(const GURL& origin); |
+ void CloneNamespaceInCommitSequence(int64 clone_namespace_id); |
+ |
int64 namespace_id_; |
FilePath directory_; |
AreaMap areas_; |
scoped_refptr<DomStorageTaskRunner> task_runner_; |
+ scoped_refptr<SessionStorageDatabase> session_storage_database_; |
}; |
} // namespace dom_storage |