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

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: rebase 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
« no previous file with comments | « no previous file | content/browser/appcache/appcache_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_host.h
diff --git a/content/browser/appcache/appcache_host.h b/content/browser/appcache/appcache_host.h
index 4432e41c3978cf88ef6c04d1ca79513132e806a7..933ad483c80e71d474264a25628cac1d44ad9d3a 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698