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

Unified Diff: content/common/url_loader.mojom

Issue 2467833002: Implement redirect handling on MojoAsyncResourceHandler (Closed)
Patch Set: rebase 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/common/typemaps.gni ('k') | content/common/url_request_redirect_info.typemap » ('j') | 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 f66e93c97371e2a7a37f7e0399a841a4801cddb4..c8d8ac3a9c50f8ce4c599ae1829dbe7aebb20a65 100644
--- a/content/common/url_loader.mojom
+++ b/content/common/url_loader.mojom
@@ -11,6 +11,9 @@ struct URLRequest;
struct URLResponseHead;
[Native]
+struct URLRequestRedirectInfo;
+
+[Native]
struct URLLoaderStatus;
// Destroying a URLLoader will cancel the associated request.
@@ -25,6 +28,10 @@ interface URLLoaderClient {
// Called when the response head is received.
OnReceiveResponse(URLResponseHead head);
+ // Called when the request has been redirected. The receiver is expected to
+ // call FollowRedirect or cancel the request.
+ OnReceiveRedirect(URLRequestRedirectInfo redirect_info, URLResponseHead head);
+
// Called when some data from a resource request has been downloaded to the
// file. This is only called in the 'download_to_file' case and replaces
// OnStartLoadingResponseBody in the call sequence in that case.
« no previous file with comments | « content/common/typemaps.gni ('k') | content/common/url_request_redirect_info.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698