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

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..f9046ea05968bca38968300962f64599a08159d0 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -342,6 +342,11 @@ 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.
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698