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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // start a browser-initiated navigation besides those in CommonNavigationParams. | 224 // start a browser-initiated navigation besides those in CommonNavigationParams. |
225 // PlzNavigate: sent to the renderer to make it issue a stream request for a | 225 // PlzNavigate: sent to the renderer to make it issue a stream request for a |
226 // navigation that is ready to commit. | 226 // navigation that is ready to commit. |
227 struct CONTENT_EXPORT RequestNavigationParams { | 227 struct CONTENT_EXPORT RequestNavigationParams { |
228 RequestNavigationParams(); | 228 RequestNavigationParams(); |
229 RequestNavigationParams(bool is_overriding_user_agent, | 229 RequestNavigationParams(bool is_overriding_user_agent, |
230 const std::vector<GURL>& redirects, | 230 const std::vector<GURL>& redirects, |
231 bool can_load_local_resources, | 231 bool can_load_local_resources, |
232 const PageState& page_state, | 232 const PageState& page_state, |
233 int nav_entry_id, | 233 int nav_entry_id, |
234 bool is_same_document_history_load, | |
235 bool is_history_navigation_in_new_child, | 234 bool is_history_navigation_in_new_child, |
236 std::map<std::string, bool> subframe_unique_names, | 235 std::map<std::string, bool> subframe_unique_names, |
237 bool has_committed_real_load, | 236 bool has_committed_real_load, |
238 bool intended_as_new_entry, | 237 bool intended_as_new_entry, |
239 int pending_history_list_offset, | 238 int pending_history_list_offset, |
240 int current_history_list_offset, | 239 int current_history_list_offset, |
241 int current_history_list_length, | 240 int current_history_list_length, |
242 bool is_view_source, | 241 bool is_view_source, |
243 bool should_clear_history_list, | 242 bool should_clear_history_list, |
244 bool has_user_gesture); | 243 bool has_user_gesture); |
(...skipping 16 matching lines...) Expand all Loading... |
261 | 260 |
262 // Opaque history state (received by ViewHostMsg_UpdateState). | 261 // Opaque history state (received by ViewHostMsg_UpdateState). |
263 PageState page_state; | 262 PageState page_state; |
264 | 263 |
265 // For browser-initiated navigations, this is the unique id of the | 264 // For browser-initiated navigations, this is the unique id of the |
266 // NavigationEntry being navigated to. (For renderer-initiated navigations it | 265 // NavigationEntry being navigated to. (For renderer-initiated navigations it |
267 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in | 266 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in |
268 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. | 267 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. |
269 int nav_entry_id; | 268 int nav_entry_id; |
270 | 269 |
271 // For history navigations, this indicates whether the load will stay within | |
272 // the same document. Defaults to false. | |
273 bool is_same_document_history_load; | |
274 | |
275 // Whether this is a history navigation in a newly created child frame, in | 270 // Whether this is a history navigation in a newly created child frame, in |
276 // which case the browser process is instructing the renderer process to load | 271 // which case the browser process is instructing the renderer process to load |
277 // a URL from a session history item. Defaults to false. | 272 // a URL from a session history item. Defaults to false. |
278 bool is_history_navigation_in_new_child; | 273 bool is_history_navigation_in_new_child; |
279 | 274 |
280 // If this is a history navigation, this contains a map of frame unique names | 275 // If this is a history navigation, this contains a map of frame unique names |
281 // to |is_about_blank| for immediate children of the frame being navigated for | 276 // to |is_about_blank| for immediate children of the frame being navigated for |
282 // which there are history items. The renderer process only needs to check | 277 // which there are history items. The renderer process only needs to check |
283 // with the browser process for newly created subframes that have these unique | 278 // with the browser process for newly created subframes that have these unique |
284 // names (and only when not staying on about:blank). | 279 // names (and only when not staying on about:blank). |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 ~NavigationParams(); | 353 ~NavigationParams(); |
359 | 354 |
360 CommonNavigationParams common_params; | 355 CommonNavigationParams common_params; |
361 StartNavigationParams start_params; | 356 StartNavigationParams start_params; |
362 RequestNavigationParams request_params; | 357 RequestNavigationParams request_params; |
363 }; | 358 }; |
364 | 359 |
365 } // namespace content | 360 } // namespace content |
366 | 361 |
367 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 362 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |