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

Unified Diff: webkit/appcache/appcache_service.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 | « content/test/test_browser_context.h ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_service.h
diff --git a/webkit/appcache/appcache_service.h b/webkit/appcache/appcache_service.h
index f63ac25dfea24588a893f8e842bb18ef42d12761..e09b0e3bad66f9ba160a4593c8eecc36a09e75b1 100644
--- a/webkit/appcache/appcache_service.h
+++ b/webkit/appcache/appcache_service.h
@@ -144,6 +144,13 @@ class APPCACHE_EXPORT AppCacheService {
void set_clear_local_state_on_exit(bool clear_local_state_on_exit) {
clear_local_state_on_exit_ = clear_local_state_on_exit; }
+ bool save_session_state() const { return save_session_state_; }
+ // If |save_session_state| is true, disables the exit-time deletion for all
+ // data (also session-only data).
+ void set_save_session_state(bool save_session_state) {
+ save_session_state_ = save_session_state;
+ }
+
protected:
friend class AppCacheStorageImplTest;
friend class AppCacheServiceTest;
@@ -171,6 +178,8 @@ class APPCACHE_EXPORT AppCacheService {
// Context for use during cache updates.
net::URLRequestContext* request_context_;
bool clear_local_state_on_exit_;
+ // If true, nothing (not even session-only data) should be deleted on exit.
+ bool save_session_state_;
DISALLOW_COPY_AND_ASSIGN(AppCacheService);
};
« no previous file with comments | « content/test/test_browser_context.h ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698