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 <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/common/frame_message_enums.h" | 17 #include "content/common/frame_message_enums.h" |
18 #include "content/common/resource_request_body_impl.h" | 18 #include "content/common/resource_request_body_impl.h" |
19 #include "content/public/common/page_state.h" | 19 #include "content/public/common/page_state.h" |
20 #include "content/public/common/referrer.h" | 20 #include "content/public/common/referrer.h" |
21 #include "content/public/common/request_context_type.h" | 21 #include "content/public/common/request_context_type.h" |
| 22 #include "content/public/common/resource_response.h" |
22 #include "ui/base/page_transition_types.h" | 23 #include "ui/base/page_transition_types.h" |
23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
24 | 25 |
25 namespace content { | 26 namespace content { |
26 | 27 |
27 // The LoFi state which determines whether to add the Lo-Fi header. | 28 // The LoFi state which determines whether to add the Lo-Fi header. |
28 enum LoFiState { | 29 enum LoFiState { |
29 // Let the browser process decide whether or not to request the Lo-Fi version. | 30 // Let the browser process decide whether or not to request the Lo-Fi version. |
30 LOFI_UNSPECIFIED = 0, | 31 LOFI_UNSPECIFIED = 0, |
31 | 32 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 RequestNavigationParams(const RequestNavigationParams& other); | 235 RequestNavigationParams(const RequestNavigationParams& other); |
235 ~RequestNavigationParams(); | 236 ~RequestNavigationParams(); |
236 | 237 |
237 // Whether or not the user agent override string should be used. | 238 // Whether or not the user agent override string should be used. |
238 bool is_overriding_user_agent; | 239 bool is_overriding_user_agent; |
239 | 240 |
240 // Any redirect URLs that occurred before |url|. Useful for cross-process | 241 // Any redirect URLs that occurred before |url|. Useful for cross-process |
241 // navigations; defaults to empty. | 242 // navigations; defaults to empty. |
242 std::vector<GURL> redirects; | 243 std::vector<GURL> redirects; |
243 | 244 |
| 245 // The ResourceResponseInfos received during redirects. |
| 246 std::vector<ResourceResponseInfo> redirect_response; |
| 247 |
244 // Whether or not this url should be allowed to access local file:// | 248 // Whether or not this url should be allowed to access local file:// |
245 // resources. | 249 // resources. |
246 bool can_load_local_resources; | 250 bool can_load_local_resources; |
247 | 251 |
248 // The time the request was created. This is used by the old performance | 252 // The time the request was created. This is used by the old performance |
249 // infrastructure to set up DocumentState associated with the RenderView. | 253 // infrastructure to set up DocumentState associated with the RenderView. |
250 // TODO(ppi): make it go away. | 254 // TODO(ppi): make it go away. |
251 base::Time request_time; | 255 base::Time request_time; |
252 | 256 |
253 // Opaque history state (received by ViewHostMsg_UpdateState). | 257 // Opaque history state (received by ViewHostMsg_UpdateState). |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 ~NavigationParams(); | 354 ~NavigationParams(); |
351 | 355 |
352 CommonNavigationParams common_params; | 356 CommonNavigationParams common_params; |
353 StartNavigationParams start_params; | 357 StartNavigationParams start_params; |
354 RequestNavigationParams request_params; | 358 RequestNavigationParams request_params; |
355 }; | 359 }; |
356 | 360 |
357 } // namespace content | 361 } // namespace content |
358 | 362 |
359 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 363 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |