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

Unified Diff: content/common/url_loader.mojom

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
« no previous file with comments | « content/browser/service_worker/service_worker_fetch_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_loader.mojom
diff --git a/content/common/url_loader.mojom b/content/common/url_loader.mojom
index e797c7e1a15e40c696680d3c063e5eed74b8e73f..f66e93c97371e2a7a37f7e0399a841a4801cddb4 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -13,16 +13,12 @@ struct URLResponseHead;
[Native]
struct URLLoaderStatus;
+// Destroying a URLLoader will cancel the associated request.
interface URLLoader {
// If the associated request has |auto_follow_redirects| set to false,
// then upon receiving an URLResponse with a non-NULL |redirect_url| field,
// |FollowRedirect| may be called to load the URL indicated by the redirect.
FollowRedirect();
-
- // Cancels the request. The service will cancel loading, but there may be some
- // time lag and it is possible that the client gets some notification after
- // calling this method for a while.
- Cancel();
};
interface URLLoaderClient {
« no previous file with comments | « content/browser/service_worker/service_worker_fetch_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698