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

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

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/session_storage_namespace.h
diff --git a/content/public/browser/session_storage_namespace.h b/content/public/browser/session_storage_namespace.h
index 2469ad5d4a4a7c833a642776b0fe1bdec200f331..0fa61b3ceed2f679f0f4b6cc8b5238eb1ff16c6f 100644
--- a/content/public/browser/session_storage_namespace.h
+++ b/content/public/browser/session_storage_namespace.h
@@ -28,6 +28,10 @@ class SessionStorageNamespace
// unique across browser runs.
virtual const std::string& persistent_id() const = 0;
+ // For marking that the sessionStorage will be needed or won't be needed by
+ // session restore.
+ virtual void SetShouldPersist(bool should_persist) = 0;
+
protected:
friend class base::RefCountedThreadSafe<SessionStorageNamespace>;
virtual ~SessionStorageNamespace() {}

Powered by Google App Engine
This is Rietveld 408576698