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

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

Issue 2466843002: Cancel the request when URLLoader is gone (Closed)
Patch Set: fix Created 4 years, 1 month 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/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 a8fff5e60853cdbb913a7f5cda7ca5afe5e4509f..435b0ee13cee81ead80e1cdafc55a0deda33481d 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -342,6 +342,12 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// of |request_id_| for the details. Must be called on the IO thread.
int MakeRequestID();
+ // Cancels a request as requested by a renderer. This function is called when
+ // a mojo connection is lost.
+ // Note that this cancel is subtly different from the other CancelRequest
+ // methods in this file, which also tear down the loader.
+ void CancelRequestFromRenderer(GlobalRequestID request_id);
+
private:
friend class ResourceDispatcherHostTest;
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698