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

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: . 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
Index: webkit/appcache/appcache_service.h
diff --git a/webkit/appcache/appcache_service.h b/webkit/appcache/appcache_service.h
index f63ac25dfea24588a893f8e842bb18ef42d12761..c18e5d5865b759993dfca61883c7be7c607b4b5a 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) {
michaeln 2011/12/07 20:49:15 indent is off
marja 2011/12/08 08:30:12 Done.
+ 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);
};

Powered by Google App Engine
This is Rietveld 408576698