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 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/common/frame_message_enums.h" | 16 #include "content/common/frame_message_enums.h" |
17 #include "content/common/resource_request_body_impl.h" | 17 #include "content/common/resource_request_body_impl.h" |
18 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
19 #include "content/public/common/referrer.h" | 19 #include "content/public/common/referrer.h" |
20 #include "content/public/common/request_context_type.h" | 20 #include "content/public/common/request_context_type.h" |
21 #include "content/public/common/resource_response.h" | |
21 #include "ui/base/page_transition_types.h" | 22 #include "ui/base/page_transition_types.h" |
22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 | 26 |
26 // The LoFi state which determines whether to add the Lo-Fi header. | 27 // The LoFi state which determines whether to add the Lo-Fi header. |
27 enum LoFiState { | 28 enum LoFiState { |
28 // Let the browser process decide whether or not to request the Lo-Fi version. | 29 // Let the browser process decide whether or not to request the Lo-Fi version. |
29 LOFI_UNSPECIFIED = 0, | 30 LOFI_UNSPECIFIED = 0, |
30 | 31 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
238 RequestNavigationParams(const RequestNavigationParams& other); | 239 RequestNavigationParams(const RequestNavigationParams& other); |
239 ~RequestNavigationParams(); | 240 ~RequestNavigationParams(); |
240 | 241 |
241 // Whether or not the user agent override string should be used. | 242 // Whether or not the user agent override string should be used. |
242 bool is_overriding_user_agent; | 243 bool is_overriding_user_agent; |
243 | 244 |
244 // Any redirect URLs that occurred before |url|. Useful for cross-process | 245 // Any redirect URLs that occurred before |url|. Useful for cross-process |
245 // navigations; defaults to empty. | 246 // navigations; defaults to empty. |
246 std::vector<GURL> redirects; | 247 std::vector<GURL> redirects; |
247 | 248 |
249 // The ResourceResponseInfo received during redirects. | |
clamy
2016/09/19 12:10:47
nit:s/ResourceResponseInfo/ResourceResponseInfos (
arthursonzogni
2016/09/19 13:15:37
Done.
| |
250 std::vector<ResourceResponseInfo> redirect_response_infos; | |
251 | |
248 // Whether or not this url should be allowed to access local file:// | 252 // Whether or not this url should be allowed to access local file:// |
249 // resources. | 253 // resources. |
250 bool can_load_local_resources; | 254 bool can_load_local_resources; |
251 | 255 |
252 // The time the request was created. This is used by the old performance | 256 // The time the request was created. This is used by the old performance |
253 // infrastructure to set up DocumentState associated with the RenderView. | 257 // infrastructure to set up DocumentState associated with the RenderView. |
254 // TODO(ppi): make it go away. | 258 // TODO(ppi): make it go away. |
255 base::Time request_time; | 259 base::Time request_time; |
256 | 260 |
257 // Opaque history state (received by ViewHostMsg_UpdateState). | 261 // Opaque history state (received by ViewHostMsg_UpdateState). |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
336 ~NavigationParams(); | 340 ~NavigationParams(); |
337 | 341 |
338 CommonNavigationParams common_params; | 342 CommonNavigationParams common_params; |
339 StartNavigationParams start_params; | 343 StartNavigationParams start_params; |
340 RequestNavigationParams request_params; | 344 RequestNavigationParams request_params; |
341 }; | 345 }; |
342 | 346 |
343 } // namespace content | 347 } // namespace content |
344 | 348 |
345 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 349 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |