| 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);
|
| };
|
|
|