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

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

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (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 40d6387097dad785c32c3dd71ff8516a864187be..309fc844bab23d37da00bc18fb337096c06d3424 100644
--- a/content/public/browser/dom_storage_context.h
+++ b/content/public/browser/dom_storage_context.h
@@ -17,6 +17,7 @@ class GURL;
namespace content {
class BrowserContext;
+class SessionStorageNamespace;
// Represents the per-BrowserContext Local Storage data.
class DOMStorageContext {
@@ -31,6 +32,13 @@ class DOMStorageContext {
// Deletes the local storage data for the given origin.
virtual void DeleteOrigin(const GURL& origin) = 0;
+ // Creates a SessionStorageNamespace with the given |persistent_id|. Used
+ // after tabs are restored by session restore. When created, the
+ // SessionStorageNamespace with the correct |persistent_id| will be
+ // associated with the persisted sessionStorage data.
+ virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage(
+ const std::string& persistent_id) = 0;
+
protected:
virtual ~DOMStorageContext() {}
};

Powered by Google App Engine
This is Rietveld 408576698