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

Unified Diff: content/browser/dom_storage/dom_storage_context_impl.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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: content/browser/dom_storage/dom_storage_context_impl.h
diff --git a/content/browser/dom_storage/dom_storage_context_impl.h b/content/browser/dom_storage/dom_storage_context_impl.h
index 135b0c52d21fbe22d3d2e493cc10f31d83f02ae7..481084ddbc64ef6e4d396cf56b9dfc0c14e65420 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.h
+++ b/content/browser/dom_storage/dom_storage_context_impl.h
@@ -23,13 +23,15 @@ class CONTENT_EXPORT DOMStorageContextImpl :
public:
// If |data_path| is empty, nothing will be saved to disk.
DOMStorageContextImpl(const FilePath& data_path,
- quota::SpecialStoragePolicy* special_storage_policy);
+ quota::SpecialStoragePolicy* special_storage_policy,
+ bool save_session_storage_on_disk);
// DOMStorageContext implementation.
virtual void GetUsageInfo(const GetUsageInfoCallback& callback) OVERRIDE;
virtual void DeleteOrigin(const GURL& origin) OVERRIDE;
virtual scoped_refptr<content::SessionStorageNamespace>
RecreateSessionStorage(const std::string& persistent_id) OVERRIDE;
+ virtual void StartScavengingUnusedSessionStorage() OVERRIDE;
// Called to free up memory that's not strictly needed.
void PurgeMemory();

Powered by Google App Engine
This is Rietveld 408576698