OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ | 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_ |
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ | 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Unless this refers to a transferred navigation, these values are -1 and -1. | 167 // Unless this refers to a transferred navigation, these values are -1 and -1. |
168 int transferred_request_child_id = -1; | 168 int transferred_request_child_id = -1; |
169 int transferred_request_request_id = -1; | 169 int transferred_request_request_id = -1; |
170 | 170 |
171 // Whether or not we should allow the URL to download. | 171 // Whether or not we should allow the URL to download. |
172 bool allow_download = false; | 172 bool allow_download = false; |
173 | 173 |
174 // Whether to intercept headers to pass back to the renderer. | 174 // Whether to intercept headers to pass back to the renderer. |
175 bool report_raw_headers = false; | 175 bool report_raw_headers = false; |
176 | 176 |
177 // Whether or not to request a LoFi version of the resource or let the browser | 177 // Whether or not to request a Preview version of the resource or let the |
178 // decide. | 178 // browser decide. A value of zero indicates to let the browser decide. |
179 LoFiState lofi_state = LOFI_UNSPECIFIED; | 179 int previews_state = 0; |
180 | 180 |
181 // PlzNavigate: the stream url associated with a navigation. Used to get | 181 // PlzNavigate: the stream url associated with a navigation. Used to get |
182 // access to the body of the response that has already been fetched by the | 182 // access to the body of the response that has already been fetched by the |
183 // browser. | 183 // browser. |
184 GURL resource_body_stream_url; | 184 GURL resource_body_stream_url; |
185 | 185 |
186 // Wether or not the initiator of this request is a secure context. | 186 // Wether or not the initiator of this request is a secure context. |
187 bool initiated_in_secure_context = false; | 187 bool initiated_in_secure_context = false; |
188 | 188 |
189 // The response should be downloaded and stored in the network cache, but not | 189 // The response should be downloaded and stored in the network cache, but not |
190 // sent back to the renderer. | 190 // sent back to the renderer. |
191 bool download_to_network_cache_only = false; | 191 bool download_to_network_cache_only = false; |
192 }; | 192 }; |
193 | 193 |
194 } // namespace content | 194 } // namespace content |
195 | 195 |
196 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ | 196 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ |
OLD | NEW |