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

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: . 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..10d9e69dc385e6d0c61ea13a6c3662122a98c74b 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.
@@ -34,6 +35,12 @@ class DomStorageNamespace
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|.
+ 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,
@@ -74,6 +81,7 @@ class DomStorageNamespace
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