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

Unified Diff: webkit/dom_storage/dom_storage_area.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: code review Created 8 years, 5 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_area.h
diff --git a/webkit/dom_storage/dom_storage_area.h b/webkit/dom_storage/dom_storage_area.h
index d0b09a77a57b6b246cbbd6f9aab2e5dffc9eb2bf..4a98daacbc371f4dccfe758b0ab813114fd743f8 100644
--- a/webkit/dom_storage/dom_storage_area.h
+++ b/webkit/dom_storage/dom_storage_area.h
@@ -20,6 +20,7 @@ namespace dom_storage {
class DomStorageDatabaseAdapter;
class DomStorageMap;
class DomStorageTaskRunner;
+class SessionStorageDatabase;
// Container for a per-origin Map of key/value pairs potentially
// backed by storage on disk and lazily commits changes to disk.
@@ -37,10 +38,11 @@ class DomStorageArea
const FilePath& directory,
DomStorageTaskRunner* task_runner);
- // Session storage.
+ // Session storage. Backed on disk if |session_storage_backing| is not NULL.
DomStorageArea(int64 namespace_id,
const std::string& persistent_namespace_id,
const GURL& origin,
+ SessionStorageDatabase* session_storage_backing,
DomStorageTaskRunner* task_runner);
const GURL& origin() const { return origin_; }
@@ -120,6 +122,7 @@ class DomStorageArea
scoped_refptr<DomStorageTaskRunner> task_runner_;
scoped_refptr<DomStorageMap> map_;
scoped_ptr<DomStorageDatabaseAdapter> backing_;
+ scoped_refptr<SessionStorageDatabase> session_storage_backing_;
bool is_initial_import_done_;
bool is_shutdown_;
scoped_ptr<CommitBatch> commit_batch_;

Powered by Google App Engine
This is Rietveld 408576698