Chromium Code Reviews| 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 |