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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Add DCHECKs for PlzNavigate and fix a double Release problem which caused one unit_test to fail wit… Created 4 years, 1 month 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 c5103c2db7fe4a5e894df3c3832989aec0cea05d..e41ba962e3277a0f905c8965299616b7ef2c41ff 100644
--- a/content/browser/appcache/appcache_host.h
+++ b/content/browser/appcache/appcache_host.h
@@ -163,9 +163,17 @@ class CONTENT_EXPORT AppCacheHost
}
int host_id() const { return host_id_; }
+
AppCacheServiceImpl* service() const { return service_; }
AppCacheStorage* storage() const { return storage_; }
AppCacheFrontend* frontend() const { return frontend_; }
+
+ // PlzNavigate:
+ // When a navigation commits, we need to switch the AppCacheFrontend and
+ // possibly the AppCacheServiceImpl instance we are registered with.
+ void FrameNavigationCommitted(AppCacheFrontend* frontend,
+ AppCacheServiceImpl* service);
+
AppCache* associated_cache() const { return associated_cache_.get(); }
void enable_cache_selection(bool enable) {

Powered by Google App Engine
This is Rietveld 408576698