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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_impl.h

Issue 10389030: Fixed CHECKs for use of canceled ResourceContexts in ResourceDispatcherHostImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile errors. Created 8 years, 7 months 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
« no previous file with comments | « no previous file | content/browser/renderer_host/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698