| 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 module mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "network/public/interfaces/http_message.mojom"; | 7 import "network/interfaces/http_message.mojom"; |
| 8 import "third_party/mojo/src/mojo/public/interfaces/network/network_error.mojom"
; | 8 import "third_party/mojo/src/mojo/public/interfaces/network/network_error.mojom"
; |
| 9 import "third_party/mojo/src/mojo/public/interfaces/network/url_request.mojom"; | 9 import "third_party/mojo/src/mojo/public/interfaces/network/url_request.mojom"; |
| 10 import "third_party/mojo/src/mojo/public/interfaces/network/url_response.mojom"; | 10 import "third_party/mojo/src/mojo/public/interfaces/network/url_response.mojom"; |
| 11 | 11 |
| 12 struct URLLoaderStatus { | 12 struct URLLoaderStatus { |
| 13 // If the loader has failed due to a network level error, this field will be | 13 // If the loader has failed due to a network level error, this field will be |
| 14 // set. | 14 // set. |
| 15 NetworkError? error; | 15 NetworkError? error; |
| 16 | 16 |
| 17 // Set to true if the URLLoader is still working. Set to false once an error | 17 // Set to true if the URLLoader is still working. Set to false once an error |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 Start(URLRequest request) => (URLResponse response); | 30 Start(URLRequest request) => (URLResponse response); |
| 31 | 31 |
| 32 // If the request passed to |Start| had |auto_follow_redirects| set to false, | 32 // If the request passed to |Start| had |auto_follow_redirects| set to false, |
| 33 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, | 33 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, |
| 34 // |FollowRedirect| may be called to load the URL indicated by the redirect. | 34 // |FollowRedirect| may be called to load the URL indicated by the redirect. |
| 35 FollowRedirect() => (URLResponse response); | 35 FollowRedirect() => (URLResponse response); |
| 36 | 36 |
| 37 // Query status about the URLLoader. | 37 // Query status about the URLLoader. |
| 38 QueryStatus() => (URLLoaderStatus status); | 38 QueryStatus() => (URLLoaderStatus status); |
| 39 }; | 39 }; |
| OLD | NEW |