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

Unified Diff: webkit/appcache/appcache_service.h

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moving test helpers to webkit/appcache. Created 9 years, 5 months 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/browser/appcache/chrome_appcache_service_unittest.cc ('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 4952c941270c17ab87b63d78ae5d273c53652229..71584ccca5dccf24c1d967b3c645f509225d6ba1 100644
--- a/webkit/appcache/appcache_service.h
+++ b/webkit/appcache/appcache_service.h
@@ -132,6 +132,10 @@ class AppCacheService {
AppCacheStorage* storage() const { return storage_.get(); }
+ bool clear_local_state_on_exit() const { return clear_local_state_on_exit_; }
+ void set_clear_local_state_on_exit(bool clear_local_state_on_exit) {
+ clear_local_state_on_exit_ = clear_local_state_on_exit; }
+
protected:
friend class AppCacheStorageImplTest;
friend class AppCacheServiceTest;
@@ -154,6 +158,7 @@ class AppCacheService {
BackendMap backends_; // One 'backend' per child process.
// Context for use during cache updates.
net::URLRequestContext* request_context_;
+ bool clear_local_state_on_exit_;
DISALLOW_COPY_AND_ASSIGN(AppCacheService);
};
« no previous file with comments | « content/browser/appcache/chrome_appcache_service_unittest.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698