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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Rebase to tip correctly 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_backend_impl.cc
diff --git a/content/browser/appcache/appcache_backend_impl.cc b/content/browser/appcache/appcache_backend_impl.cc
index 7f29c3e97a713cb7a13924b6cc27a7fb9113627a..2433dc2b0d1489d4c69cbd818773ca6e1224466f 100644
--- a/content/browser/appcache/appcache_backend_impl.cc
+++ b/content/browser/appcache/appcache_backend_impl.cc
@@ -8,6 +8,7 @@
#include "content/browser/appcache/appcache.h"
#include "content/browser/appcache/appcache_group.h"
#include "content/browser/appcache/appcache_service_impl.h"
+#include "content/public/common/browser_side_navigation_policy.h"
namespace content {
@@ -166,4 +167,13 @@ void AppCacheBackendImpl::TransferHostIn(int new_host_id,
found->second = std::move(host);
}
+void AppCacheBackendImpl::RegisterPrecreatedHost(
+ std::unique_ptr<AppCacheHost> host) {
+ DCHECK(IsBrowserSideNavigationEnabled());
+ DCHECK(host.get());
+ DCHECK(hosts_.find(host->host_id()) == hosts_.end());
+
+ hosts_[host->host_id()] = std::move(host);
michaeln 2016/12/03 00:58:58 yup, i'd vote to put the 'pending_host_ids_' colle
ananta 2016/12/03 14:55:04 Done.
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698