Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Unified Diff: webkit/dom_storage/dom_storage_namespace.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698