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

Side by Side Diff: mojo/services/network/public/interfaces/url_loader.mojom

Issue 1129143005: Introduce Http{Request,Response} mojom structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 import "network/public/interfaces/http_message.mojom";
7 import "network/public/interfaces/network_error.mojom"; 8 import "network/public/interfaces/network_error.mojom";
8 9
9 struct HTTPHeader {
10 string name;
11 string value;
12 };
13
14 struct URLRequest { 10 struct URLRequest {
15 // The URL to load. 11 // The URL to load.
16 string url; 12 string url;
17 13
18 // The HTTP method if applicable. 14 // The HTTP method if applicable.
19 string method = "GET"; 15 string method = "GET";
20 16
21 // Additional HTTP request headers. 17 // Additional HTTP request headers.
22 array<HTTPHeader>? headers; 18 array<HTTPHeader>? headers;
23 19
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Start(URLRequest request) => (URLResponse response); 92 Start(URLRequest request) => (URLResponse response);
97 93
98 // If the request passed to |Start| had |auto_follow_redirects| set to false, 94 // If the request passed to |Start| had |auto_follow_redirects| set to false,
99 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, 95 // then upon receiving an URLResponse with a non-NULL |redirect_url| field,
100 // |FollowRedirect| may be called to load the URL indicated by the redirect. 96 // |FollowRedirect| may be called to load the URL indicated by the redirect.
101 FollowRedirect() => (URLResponse response); 97 FollowRedirect() => (URLResponse response);
102 98
103 // Query status about the URLLoader. 99 // Query status about the URLLoader.
104 QueryStatus() => (URLLoaderStatus status); 100 QueryStatus() => (URLLoaderStatus status);
105 }; 101 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698