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

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: test fix 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
« no previous file with comments | « content/public/browser/dom_storage_context.h ('k') | webkit/dom_storage/dom_storage_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6c1b1a01591fcb8acc5323a95a911e2138dac922 100644
--- a/content/public/browser/session_storage_namespace.h
+++ b/content/public/browser/session_storage_namespace.h
@@ -18,8 +18,6 @@ namespace content {
class SessionStorageNamespace
: public base::RefCountedThreadSafe<SessionStorageNamespace> {
public:
- SessionStorageNamespace() {}
-
// Returns the ID of the |SessionStorageNamespace|. The ID is unique among all
// SessionStorageNamespace objects, but not unique across browser runs.
virtual int64 id() const = 0;
@@ -28,11 +26,13 @@ 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() {}
-
- DISALLOW_COPY_AND_ASSIGN(SessionStorageNamespace);
};
} // namespace content
« no previous file with comments | « content/public/browser/dom_storage_context.h ('k') | webkit/dom_storage/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698