| 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 <map> | 10 #include <map> |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 // Used by FrameMsg_Navigate. Holds the parameters needed by the renderer to | 211 // Used by FrameMsg_Navigate. Holds the parameters needed by the renderer to |
| 212 // start a browser-initiated navigation besides those in CommonNavigationParams. | 212 // start a browser-initiated navigation besides those in CommonNavigationParams. |
| 213 // PlzNavigate: sent to the renderer to make it issue a stream request for a | 213 // PlzNavigate: sent to the renderer to make it issue a stream request for a |
| 214 // navigation that is ready to commit. | 214 // navigation that is ready to commit. |
| 215 struct CONTENT_EXPORT RequestNavigationParams { | 215 struct CONTENT_EXPORT RequestNavigationParams { |
| 216 RequestNavigationParams(); | 216 RequestNavigationParams(); |
| 217 RequestNavigationParams(bool is_overriding_user_agent, | 217 RequestNavigationParams(bool is_overriding_user_agent, |
| 218 const std::vector<GURL>& redirects, | 218 const std::vector<GURL>& redirects, |
| 219 bool can_load_local_resources, | 219 bool can_load_local_resources, |
| 220 base::Time request_time, | |
| 221 const PageState& page_state, | 220 const PageState& page_state, |
| 222 int nav_entry_id, | 221 int nav_entry_id, |
| 223 bool is_same_document_history_load, | 222 bool is_same_document_history_load, |
| 224 bool is_history_navigation_in_new_child, | 223 bool is_history_navigation_in_new_child, |
| 225 std::map<std::string, bool> subframe_unique_names, | 224 std::map<std::string, bool> subframe_unique_names, |
| 226 bool has_committed_real_load, | 225 bool has_committed_real_load, |
| 227 bool intended_as_new_entry, | 226 bool intended_as_new_entry, |
| 228 int pending_history_list_offset, | 227 int pending_history_list_offset, |
| 229 int current_history_list_offset, | 228 int current_history_list_offset, |
| 230 int current_history_list_length, | 229 int current_history_list_length, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 241 // navigations; defaults to empty. | 240 // navigations; defaults to empty. |
| 242 std::vector<GURL> redirects; | 241 std::vector<GURL> redirects; |
| 243 | 242 |
| 244 // The ResourceResponseInfos received during redirects. | 243 // The ResourceResponseInfos received during redirects. |
| 245 std::vector<ResourceResponseInfo> redirect_response; | 244 std::vector<ResourceResponseInfo> redirect_response; |
| 246 | 245 |
| 247 // Whether or not this url should be allowed to access local file:// | 246 // Whether or not this url should be allowed to access local file:// |
| 248 // resources. | 247 // resources. |
| 249 bool can_load_local_resources; | 248 bool can_load_local_resources; |
| 250 | 249 |
| 251 // The time the request was created. This is used by the old performance | |
| 252 // infrastructure to set up DocumentState associated with the RenderView. | |
| 253 // TODO(ppi): make it go away. | |
| 254 base::Time request_time; | |
| 255 | |
| 256 // Opaque history state (received by ViewHostMsg_UpdateState). | 250 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 257 PageState page_state; | 251 PageState page_state; |
| 258 | 252 |
| 259 // For browser-initiated navigations, this is the unique id of the | 253 // For browser-initiated navigations, this is the unique id of the |
| 260 // NavigationEntry being navigated to. (For renderer-initiated navigations it | 254 // NavigationEntry being navigated to. (For renderer-initiated navigations it |
| 261 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in | 255 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in |
| 262 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. | 256 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. |
| 263 int nav_entry_id; | 257 int nav_entry_id; |
| 264 | 258 |
| 265 // For history navigations, this indicates whether the load will stay within | 259 // For history navigations, this indicates whether the load will stay within |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 ~NavigationParams(); | 342 ~NavigationParams(); |
| 349 | 343 |
| 350 CommonNavigationParams common_params; | 344 CommonNavigationParams common_params; |
| 351 StartNavigationParams start_params; | 345 StartNavigationParams start_params; |
| 352 RequestNavigationParams request_params; | 346 RequestNavigationParams request_params; |
| 353 }; | 347 }; |
| 354 | 348 |
| 355 } // namespace content | 349 } // namespace content |
| 356 | 350 |
| 357 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 351 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |