Index: content/browser/renderer_host/resource_dispatcher_host_impl.h |
diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.h b/content/browser/renderer_host/resource_dispatcher_host_impl.h |
index 7807a447c5b1e834ef14d59066277aed86d1aa7f..70e17651c87b1510acb961c0aecf9ee3e3cba651 100644 |
--- a/content/browser/renderer_host/resource_dispatcher_host_impl.h |
+++ b/content/browser/renderer_host/resource_dispatcher_host_impl.h |
@@ -88,6 +88,12 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
// new requests). Cancels all pending requests. |
void Shutdown(); |
+ // Notify the ResourceDispatcherHostImpl of a new resource context. |
+ void AddResourceContext(ResourceContext* context); |
+ |
+ // Notify the ResourceDispatcherHostImpl of a resource context destruction. |
+ void RemoveResourceContext(ResourceContext* context); |
+ |
// Force cancels any pending requests for the given |context|. This is |
// necessary to ensure that before |context| goes away, all requests |
// for it are dead. |
@@ -514,7 +520,7 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl |
// http://crbug.com/90971 - Assists in tracking down use-after-frees on |
// shutdown. |
- std::set<const ResourceContext*> canceled_resource_contexts_; |
+ std::set<const ResourceContext*> active_resource_contexts_; |
DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
}; |