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

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: Rebased. 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: net/base/cookie_monster.h
diff --git a/net/base/cookie_monster.h b/net/base/cookie_monster.h
index 6d590921b0e4413f4260956c665334a0289d48c6..fc76362046533a8051039c5b0c6c8c3e72e49411 100644
--- a/net/base/cookie_monster.h
+++ b/net/base/cookie_monster.h
@@ -275,6 +275,12 @@ class NET_EXPORT CookieMonster : public CookieStore {
virtual CookieMonster* GetCookieMonster() OVERRIDE;
+ // Enables writing session cookies into the cookie database.
+ 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 +679,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_;

Powered by Google App Engine
This is Rietveld 408576698