Index: content/browser/loader/resource_dispatcher_host_impl.h |
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h |
index 74922647f29781d54a54a05d462560956ebf029f..10f5baab50163e807ff7b904b4a58618b628d169 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.h |
+++ b/content/browser/loader/resource_dispatcher_host_impl.h |
@@ -330,6 +330,7 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
void DidReceiveRedirect(ResourceLoader* loader, const GURL& new_url) override; |
void DidReceiveResponse(ResourceLoader* loader) override; |
void DidFinishLoading(ResourceLoader* loader) override; |
+ void LoaderDestroyed(ResourceLoader* loader) override; |
// An init helper that runs on the IO thread. |
void OnInit(); |
@@ -523,6 +524,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
LoaderMap pending_loaders_; |
+ // Keep a set of request ids currently in use. This is used to validate |
+ // incoming request ids from renderers and disallow duplicates. |
+ std::set<GlobalRequestID> request_ids_in_use_; |
+ |
// Collection of temp files downloaded for child processes via |
// the download_to_file mechanism. We avoid deleting them until |
// the client no longer needs them. |