| 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 // Any ResourceResponseInfo that occured before the final response during |
| 250 // redirections. |
| 251 std::vector<ResourceResponseInfo> resource_response_infos; |
| 252 |
| 248 // Whether or not this url should be allowed to access local file:// | 253 // Whether or not this url should be allowed to access local file:// |
| 249 // resources. | 254 // resources. |
| 250 bool can_load_local_resources; | 255 bool can_load_local_resources; |
| 251 | 256 |
| 252 // The time the request was created. This is used by the old performance | 257 // The time the request was created. This is used by the old performance |
| 253 // infrastructure to set up DocumentState associated with the RenderView. | 258 // infrastructure to set up DocumentState associated with the RenderView. |
| 254 // TODO(ppi): make it go away. | 259 // TODO(ppi): make it go away. |
| 255 base::Time request_time; | 260 base::Time request_time; |
| 256 | 261 |
| 257 // Opaque history state (received by ViewHostMsg_UpdateState). | 262 // Opaque history state (received by ViewHostMsg_UpdateState). |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 ~NavigationParams(); | 341 ~NavigationParams(); |
| 337 | 342 |
| 338 CommonNavigationParams common_params; | 343 CommonNavigationParams common_params; |
| 339 StartNavigationParams start_params; | 344 StartNavigationParams start_params; |
| 340 RequestNavigationParams request_params; | 345 RequestNavigationParams request_params; |
| 341 }; | 346 }; |
| 342 | 347 |
| 343 } // namespace content | 348 } // namespace content |
| 344 | 349 |
| 345 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 350 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |