Index: content/browser/appcache/appcache_backend_impl.h |
diff --git a/content/browser/appcache/appcache_backend_impl.h b/content/browser/appcache/appcache_backend_impl.h |
index e7f9b84eb288987c13a37f758f7c0273c6a08d51..da31e226c5f9a6293803d9577b6951c559133212 100644 |
--- a/content/browser/appcache/appcache_backend_impl.h |
+++ b/content/browser/appcache/appcache_backend_impl.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_ |
#include <stdint.h> |
+#include <set> |
#include "base/containers/hash_tables.h" |
#include "content/browser/appcache/appcache_host.h" |
@@ -66,12 +67,23 @@ class CONTENT_EXPORT AppCacheBackendImpl { |
std::unique_ptr<AppCacheHost> TransferHostOut(int host_id); |
void TransferHostIn(int new_host_id, std::unique_ptr<AppCacheHost> host); |
+ // PlzNaviate |
+ // The AppCacheHost is precreated by the AppCacheNavigationHandleCore class |
+ // when a navigation is initiated. We register the host with the backend in |
+ // this function and ignore registrations for this host id from the renderer. |
+ void RegisterPrecreatedHost(std::unique_ptr<AppCacheHost> host); |
+ |
private: |
AppCacheServiceImpl* service_; |
AppCacheFrontend* frontend_; |
int process_id_; |
HostMap hosts_; |
+ // PlzNavigate: Contains a list of pending hosts which have been registered |
+ // via the RegisterPendingHost() function. The host is removed from the list |
+ // when the RegisterHost() function is called. |
+ std::set<int> pending_hosts_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AppCacheBackendImpl); |
}; |