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

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

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.cc
diff --git a/content/browser/appcache/appcache_host.cc b/content/browser/appcache/appcache_host.cc
index adcefe08f58db1828a62f8cf782ca04f340a1881..225c5b3caf6deeabb2aff9385e81a1d9272dab92 100644
--- a/content/browser/appcache/appcache_host.cc
+++ b/content/browser/appcache/appcache_host.cc
@@ -527,6 +527,17 @@ void AppCacheHost::NotifyMainResourceBlocked(const GURL& manifest_url) {
blocked_manifest_url_ = manifest_url;
}
+void AppCacheHost::FrameNavigationCommitted(AppCacheFrontend* frontend,
+ AppCacheServiceImpl* service) {
+ DCHECK(frontend);
+ DCHECK(service);
+
+ frontend_ = frontend;
+ service_->RemoveObserver(this);
+ service_ = service;
+ service_->AddObserver(this);
+}
+
void AppCacheHost::PrepareForTransfer() {
// This can only happen prior to the document having been loaded.
DCHECK(!associated_cache());

Powered by Google App Engine
This is Rietveld 408576698