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

Unified Diff: chrome/browser/profiles/profile.h

Issue 8533013: SessionRestore: Store session cookies and restore them if chrome crashes or auto-restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 2cf9b6d7f029e061a3a37f77ac75d04d08d316c1..503c699d15d9706e0f13e4b8348865d42a767920 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -490,6 +490,15 @@ class Profile : public content::BrowserContext {
// prerender or prefetch a result.
virtual NetworkActionPredictor* GetNetworkActionPredictor() = 0;
+ // Makes the session state, e.g., cookies, persistent across the next restart.
+ virtual void SaveSessionState() {}
+
+ // Restores the saved session state, e.g., cookies, after a restart.
+ virtual void RestoreSessionState() {}
+
+ // Discards the saved session state, e.g., cookies, after a restart.
+ virtual void DiscardSessionState() {}
+
std::string GetDebugName();
// Returns whether it is a guest session.

Powered by Google App Engine
This is Rietveld 408576698