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

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

Issue 9836066: Have content cancel requests for ResourceContexts when they shutdown, instead of depending on the e… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: content/browser/renderer_host/resource_dispatcher_host_impl.h
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_impl.h (revision 128565)
+++ content/browser/renderer_host/resource_dispatcher_host_impl.h (working copy)
@@ -72,7 +72,6 @@
// ResourceDispatcherHost implementation:
virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) OVERRIDE;
virtual void SetAllowCrossOriginAuthPrompt(bool value) OVERRIDE;
- virtual void CancelRequestsForContext(ResourceContext* context) OVERRIDE;
virtual net::Error BeginDownload(
scoped_ptr<net::URLRequest> request,
ResourceContext* context,
@@ -88,6 +87,11 @@
// new requests). Cancels all pending requests.
void Shutdown();
+ // 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.
+ void CancelRequestsForContext(ResourceContext* context);
+
// Returns true if the message was a resource message that was processed.
// If it was, message_was_ok will be false iff the message was corrupt.
bool OnMessageReceived(const IPC::Message& message,

Powered by Google App Engine
This is Rietveld 408576698