| OLD | NEW |
| 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 [DartUriBase="mojo/services/network/public/interfaces"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 import "network/public/interfaces/network_error.mojom"; | 8 import "network/public/interfaces/network_error.mojom"; |
| 8 | 9 |
| 9 struct URLRequest { | 10 struct URLRequest { |
| 10 // The URL to load. | 11 // The URL to load. |
| 11 string url; | 12 string url; |
| 12 | 13 |
| 13 // The HTTP method if applicable. | 14 // The HTTP method if applicable. |
| 14 string method = "GET"; | 15 string method = "GET"; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 Start(URLRequest request) => (URLResponse response); | 91 Start(URLRequest request) => (URLResponse response); |
| 91 | 92 |
| 92 // If the request passed to |Start| had |auto_follow_redirects| set to false, | 93 // If the request passed to |Start| had |auto_follow_redirects| set to false, |
| 93 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, | 94 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, |
| 94 // |FollowRedirect| may be called to load the URL indicated by the redirect. | 95 // |FollowRedirect| may be called to load the URL indicated by the redirect. |
| 95 FollowRedirect() => (URLResponse response); | 96 FollowRedirect() => (URLResponse response); |
| 96 | 97 |
| 97 // Query status about the URLLoader. | 98 // Query status about the URLLoader. |
| 98 QueryStatus() => (URLLoaderStatus status); | 99 QueryStatus() => (URLLoaderStatus status); |
| 99 }; | 100 }; |
| OLD | NEW |