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

Unified Diff: content/public/browser/dom_storage_context.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review & fixes. 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/public/browser/dom_storage_context.h
diff --git a/content/public/browser/dom_storage_context.h b/content/public/browser/dom_storage_context.h
index 99f8cd142e883dea54a970d99baf227d78414cda..93e4cb7b04fc3310b579ea5eac26dfd1969aaf7b 100644
--- a/content/public/browser/dom_storage_context.h
+++ b/content/public/browser/dom_storage_context.h
@@ -38,6 +38,11 @@ class DOMStorageContext {
virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage(
const std::string& persistent_id) = 0;
+ // Starts deleting sessionStorages which don't have an associated
+ // SessionStorageNamespace alive. Called when SessionStorageNamespaces have
+ // been created after a session restore, or a session restore won't happen.
+ virtual void StartScavengingUnusedSessionStorage() = 0;
+
protected:
virtual ~DOMStorageContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698