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

Side by Side Diff: content/common/url_loader.mojom

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module content.mojom;
6
7 [Native]
8 struct URLRequest;
9
10 [Native]
11 struct URLResponseHead;
12
13 [Native]
14 struct URLLoaderStatus;
15
16 interface URLLoader {
17 // Loads the given |request|, asynchronously producing |response|. Consult
18 // |response| to determine if the request resulted in an error, was
19 // redirected, or has a response body to be consumed.
20 // |request_id| and |routing_id| are for compatibility with the existing
21 // ChromeIPC.
22 Load(int32 request_id,
23 int32 routing_id,
24 URLRequest request,
25 URLLoaderClient client);
26
27 // If the request passed to |Load| had |auto_follow_redirects| set to false,
28 // then upon receiving an URLResponse with a non-NULL |redirect_url| field,
29 // |FollowRedirect| may be called to load the URL indicated by the redirect.
30 FollowRedirect();
31
32 // Cancels the request.
33 Cancel();
34 };
35
36 interface URLLoaderClient {
37 OnReceiveResponse(URLResponseHead head, handle<data_pipe_consumer> body);
38 OnComplete(URLLoaderStatus completion_status);
39 };
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698