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

Unified Diff: content/browser/appcache/appcache_host.h

Issue 625433002: Pages controlled by ServiceWorkers should not participate in AppCaching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: content/browser/appcache/appcache_host.h
diff --git a/content/browser/appcache/appcache_host.h b/content/browser/appcache/appcache_host.h
index 7a63d35cbbce392c59f11869ee3ca8d6ed458624..83a908a2ba8a47520802dc472376b10d02b35ca1 100644
--- a/content/browser/appcache/appcache_host.h
+++ b/content/browser/appcache/appcache_host.h
@@ -163,6 +163,10 @@ class CONTENT_EXPORT AppCacheHost
AppCacheFrontend* frontend() const { return frontend_; }
AppCache* associated_cache() const { return associated_cache_.get(); }
+ void enable_cache_selection(bool enable) {
+ is_cache_selection_enabled_ = enable;
+ }
+
bool is_selection_pending() const {
return pending_selected_cache_id_ != kAppCacheNoCacheId ||
!pending_selected_manifest_url_.is_empty();
@@ -265,6 +269,9 @@ class CONTENT_EXPORT AppCacheHost
int64 pending_selected_cache_id_;
GURL pending_selected_manifest_url_;
+ // Used to avoid stepping on pages controlled by ServiceWorkers.
+ bool is_cache_selection_enabled_;
+
// A new master entry to be added to the cache, may be empty.
GURL new_master_entry_url_;
« no previous file with comments | « no previous file | content/browser/appcache/appcache_host.cc » ('j') | content/browser/appcache/appcache_request_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698