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

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: Code review (pkasting) Created 8 years, 4 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
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_namespace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f2f37c163b09965b8e75f64e8e3ad774e91374b..ecc0f928ec97365fec835f6d538e205e7a61e942 100644
--- a/webkit/dom_storage/dom_storage_namespace.h
+++ b/webkit/dom_storage/dom_storage_namespace.h
@@ -17,6 +17,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.
@@ -28,10 +29,11 @@ class DomStorageNamespace
DomStorageNamespace(const FilePath& directory, // may be empty
DomStorageTaskRunner* task_runner);
- // Constructor for a SessionStorage namespace with a non-zero id
- // and no backing directory on disk.
+ // Constructor for a SessionStorage namespace with a non-zero id and an
+ // optional backing on disk via |session_storage_database| (may be NULL).
DomStorageNamespace(int64 namespace_id,
const std::string& persistent_namespace_id,
+ SessionStorageDatabase* session_storage_database,
DomStorageTaskRunner* task_runner);
int64 namespace_id() const { return namespace_id_; }
@@ -79,6 +81,7 @@ class DomStorageNamespace
FilePath directory_;
AreaMap areas_;
scoped_refptr<DomStorageTaskRunner> task_runner_;
+ scoped_refptr<SessionStorageDatabase> session_storage_database_;
};
} // namespace dom_storage
« no previous file with comments | « webkit/dom_storage/dom_storage_context.cc ('k') | webkit/dom_storage/dom_storage_namespace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698