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

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 3fb05952678b80655dee69b50210b83749a16bf2..0e0502ff761b4c5187c7b33e7645df01f5db1ea5 100644
--- a/content/public/browser/dom_storage_context.h
+++ b/content/public/browser/dom_storage_context.h
@@ -18,6 +18,7 @@ class FilePath;
namespace content {
class BrowserContext;
+class SessionStorageNamespace;
// Represents the per-BrowserContext Local Storage data.
class DOMStorageContext {
@@ -41,6 +42,14 @@ class DOMStorageContext {
virtual void DeleteForOrigin(const string16& origin_id) = 0;
virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0;
+ // Called when the sessionStorage for |persistent_namespace_id| can safely be
+ // deleted (it won't be used by session restore).
+ virtual void DoomSessionStorage(
+ const std::string& persistent_namespace_id) = 0;
+
+ virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage(
+ const std::string& persistent_id) = 0;
+
protected:
virtual ~DOMStorageContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698