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

Unified Diff: net/base/cookie_monster.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: Code review. Created 9 years 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 | « chrome/common/chrome_switches.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_monster.h
diff --git a/net/base/cookie_monster.h b/net/base/cookie_monster.h
index 6d590921b0e4413f4260956c665334a0289d48c6..fc043ced8b01a874f11ab561e34ef02e129b8efd 100644
--- a/net/base/cookie_monster.h
+++ b/net/base/cookie_monster.h
@@ -275,6 +275,14 @@ class NET_EXPORT CookieMonster : public CookieStore {
virtual CookieMonster* GetCookieMonster() OVERRIDE;
+ // Enables writing session cookies into the cookie database. If this this
+ // method is called, it must be called before first use of the instance
+ // (i.e. as part of the instance initialization process).
+ void SetPersistSessionCookies(bool persist_session_cookies);
+
+ // Protects session cookies from deletion on shutdown.
+ void SaveSessionCookies();
+
// Debugging method to perform various validation checks on the map.
// Currently just checking that there are no null CanonicalCookie pointers
// in the map.
@@ -673,6 +681,7 @@ class NET_EXPORT CookieMonster : public CookieStore {
base::Time last_statistic_record_time_;
bool keep_expired_cookies_;
+ bool persist_session_cookies_;
static bool enable_file_scheme_;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698