Chromium Code Reviews| 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/public/interfaces/http_message.mojom"; |
| 8 import "network/public/interfaces/network_error.mojom"; | 8 import "network/public/interfaces/network_error.mojom"; |
| 9 | 9 |
| 10 struct URLRequest { | 10 struct URLRequest { |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 | 28 |
| 29 // If set to true, then redirects will be automatically followed. Otherwise, | 29 // If set to true, then redirects will be automatically followed. Otherwise, |
| 30 // when a redirect is encounterd, FollowRedirect must be called to proceed. | 30 // when a redirect is encounterd, FollowRedirect must be called to proceed. |
| 31 bool auto_follow_redirects = false; | 31 bool auto_follow_redirects = false; |
| 32 | 32 |
| 33 // If set to true, then the HTTP request will bypass the local cache and will | 33 // If set to true, then the HTTP request will bypass the local cache and will |
| 34 // have a 'Cache-Control: nocache' header added in that causes any proxy | 34 // have a 'Cache-Control: nocache' header added in that causes any proxy |
| 35 // servers to also not satisfy the request from their cache. This has the | 35 // servers to also not satisfy the request from their cache. This has the |
| 36 // effect of forcing a full end-to-end fetch. | 36 // effect of forcing a full end-to-end fetch. |
| 37 bool bypass_cache = false; | 37 bool bypass_cache = false; |
| 38 | |
| 39 // The time when this request is originated. 0 indicates that it is not | |
|
sky
2015/10/14 22:46:24
'is originated' -> originated
yzshen1
2015/10/14 22:59:16
Done. English is hard.
| |
| 40 // recorded. | |
| 41 int64 originating_time_ticks = 0; | |
| 38 }; | 42 }; |
| 39 | 43 |
| 40 struct URLResponse { | 44 struct URLResponse { |
| 41 // If the response resulted in a network level error, this field will be set. | 45 // If the response resulted in a network level error, this field will be set. |
| 42 NetworkError? error; | 46 NetworkError? error; |
| 43 | 47 |
| 44 // The response body stream. Read from this data pipe to receive the bytes of | 48 // The response body stream. Read from this data pipe to receive the bytes of |
| 45 // response body. | 49 // response body. |
| 46 handle<data_pipe_consumer>? body; | 50 handle<data_pipe_consumer>? body; |
| 47 | 51 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 Start(URLRequest request) => (URLResponse response); | 99 Start(URLRequest request) => (URLResponse response); |
| 96 | 100 |
| 97 // If the request passed to |Start| had |auto_follow_redirects| set to false, | 101 // If the request passed to |Start| had |auto_follow_redirects| set to false, |
| 98 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, | 102 // then upon receiving an URLResponse with a non-NULL |redirect_url| field, |
| 99 // |FollowRedirect| may be called to load the URL indicated by the redirect. | 103 // |FollowRedirect| may be called to load the URL indicated by the redirect. |
| 100 FollowRedirect() => (URLResponse response); | 104 FollowRedirect() => (URLResponse response); |
| 101 | 105 |
| 102 // Query status about the URLLoader. | 106 // Query status about the URLLoader. |
| 103 QueryStatus() => (URLLoaderStatus status); | 107 QueryStatus() => (URLLoaderStatus status); |
| 104 }; | 108 }; |
| OLD | NEW |