Chromium Code Reviews| 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); |
| }; |