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

Unified Diff: webkit/database/database_tracker.h

Issue 8820009: Appcache, local storage, indexed db, databases: skip exit-time deletion when restarting. (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 | « webkit/appcache/appcache_storage_impl.cc ('k') | webkit/database/database_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_tracker.h
diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h
index c2432f51f027f165a9d556e0c6b3f00e2331ba7a..5c728f939a50adaa49f9f0d71b6fd32b9666869d 100644
--- a/webkit/database/database_tracker.h
+++ b/webkit/database/database_tracker.h
@@ -164,6 +164,8 @@ class DatabaseTracker
// used for an incognito profile or |clear_local_state_on_exit_| is true.
void Shutdown();
void SetClearLocalStateOnExit(bool clear_local_state_on_exit);
+ // Disables the exit-time deletion for all data (also session-only data).
+ void SaveSessionState();
private:
friend class base::RefCountedThreadSafe<DatabaseTracker>;
@@ -255,6 +257,7 @@ class DatabaseTracker
bool is_initialized_;
const bool is_incognito_;
bool clear_local_state_on_exit_;
+ bool save_session_state_;
bool shutting_down_;
const FilePath profile_path_;
const FilePath db_dir_;
« no previous file with comments | « webkit/appcache/appcache_storage_impl.cc ('k') | webkit/database/database_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698