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

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. Created 8 years, 6 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 06c36e303cbf55699d624799ed7c999db4ead2ea..92759934e0ca6d6d6aeddb5de0a21b7e2c850fe0 100644
--- a/content/public/browser/dom_storage_context.h
+++ b/content/public/browser/dom_storage_context.h
@@ -21,6 +21,7 @@ class Time;
namespace content {
class BrowserContext;
+class SessionStorageNamespace;
// Represents the per-BrowserContext Local Storage data.
class DOMStorageContext {
@@ -46,6 +47,13 @@ class DOMStorageContext {
// are not deleted by this method.
virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0;
+ // Called when the sessionStorage for |namespace_id| can safely be deleted
+ // (it won't be used by session restore).
+ virtual void DoomSessionStorage(int64 namespace_id) = 0;
michaeln 2012/06/05 01:41:07 Do you know where the callsite for this method sho
marja 2012/06/06 13:37:10 Atm the DoomSessionStorage is called by SessionSer
+
+ virtual SessionStorageNamespace* CreateSessionStorage(
michaeln 2012/06/05 01:41:07 Probably should have the return value be of type s
marja 2012/06/06 13:37:10 Done. Changed the name to RecreateSessionStorage a
+ const std::string& persistent_id) = 0;
+
protected:
virtual ~DOMStorageContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698