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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments Created 4 years 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..b8724945a5f0c1c8b52e9c88135de6292e88fde3 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:
+ // The AppCacheHost instance is created with a dummy AppCacheFrontend
+ // pointer when the navigation starts. We need to switch it to the
+ // actual frontend when the navigation commits.
+ void set_frontend(AppCacheFrontend* frontend) { frontend_ = frontend; }
+
AppCache* associated_cache() const { return associated_cache_.get(); }
void enable_cache_selection(bool enable) {
« no previous file with comments | « content/browser/appcache/appcache_dispatcher_host.cc ('k') | content/browser/appcache/appcache_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698