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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // start a browser-initiated navigation besides those in CommonNavigationParams. | 216 // start a browser-initiated navigation besides those in CommonNavigationParams. |
217 // PlzNavigate: sent to the renderer to make it issue a stream request for a | 217 // PlzNavigate: sent to the renderer to make it issue a stream request for a |
218 // navigation that is ready to commit. | 218 // navigation that is ready to commit. |
219 struct CONTENT_EXPORT RequestNavigationParams { | 219 struct CONTENT_EXPORT RequestNavigationParams { |
220 RequestNavigationParams(); | 220 RequestNavigationParams(); |
221 RequestNavigationParams(bool is_overriding_user_agent, | 221 RequestNavigationParams(bool is_overriding_user_agent, |
222 const std::vector<GURL>& redirects, | 222 const std::vector<GURL>& redirects, |
223 bool can_load_local_resources, | 223 bool can_load_local_resources, |
224 const PageState& page_state, | 224 const PageState& page_state, |
225 int nav_entry_id, | 225 int nav_entry_id, |
| 226 bool is_same_document_navigation, |
226 bool is_same_document_history_load, | 227 bool is_same_document_history_load, |
227 bool is_history_navigation_in_new_child, | 228 bool is_history_navigation_in_new_child, |
228 std::map<std::string, bool> subframe_unique_names, | 229 std::map<std::string, bool> subframe_unique_names, |
229 bool has_committed_real_load, | 230 bool has_committed_real_load, |
230 bool intended_as_new_entry, | 231 bool intended_as_new_entry, |
231 int pending_history_list_offset, | 232 int pending_history_list_offset, |
232 int current_history_list_offset, | 233 int current_history_list_offset, |
233 int current_history_list_length, | 234 int current_history_list_length, |
234 bool is_view_source, | 235 bool is_view_source, |
235 bool should_clear_history_list, | 236 bool should_clear_history_list, |
(...skipping 17 matching lines...) Expand all Loading... |
253 | 254 |
254 // Opaque history state (received by ViewHostMsg_UpdateState). | 255 // Opaque history state (received by ViewHostMsg_UpdateState). |
255 PageState page_state; | 256 PageState page_state; |
256 | 257 |
257 // For browser-initiated navigations, this is the unique id of the | 258 // For browser-initiated navigations, this is the unique id of the |
258 // NavigationEntry being navigated to. (For renderer-initiated navigations it | 259 // NavigationEntry being navigated to. (For renderer-initiated navigations it |
259 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in | 260 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in |
260 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. | 261 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. |
261 int nav_entry_id; | 262 int nav_entry_id; |
262 | 263 |
| 264 // PlzNavigate |
| 265 // Whether this navigation is differing only in the fragment compared to the |
| 266 // current frame's URL. In that case, no network request should be made. |
| 267 bool is_same_document_navigation; |
| 268 |
263 // For history navigations, this indicates whether the load will stay within | 269 // For history navigations, this indicates whether the load will stay within |
264 // the same document. Defaults to false. | 270 // the same document. Defaults to false. |
265 bool is_same_document_history_load; | 271 bool is_same_document_history_load; |
266 | 272 |
267 // Whether this is a history navigation in a newly created child frame, in | 273 // Whether this is a history navigation in a newly created child frame, in |
268 // which case the browser process is instructing the renderer process to load | 274 // which case the browser process is instructing the renderer process to load |
269 // a URL from a session history item. Defaults to false. | 275 // a URL from a session history item. Defaults to false. |
270 bool is_history_navigation_in_new_child; | 276 bool is_history_navigation_in_new_child; |
271 | 277 |
272 // If this is a history navigation, this contains a map of frame unique names | 278 // If this is a history navigation, this contains a map of frame unique names |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 ~NavigationParams(); | 356 ~NavigationParams(); |
351 | 357 |
352 CommonNavigationParams common_params; | 358 CommonNavigationParams common_params; |
353 StartNavigationParams start_params; | 359 StartNavigationParams start_params; |
354 RequestNavigationParams request_params; | 360 RequestNavigationParams request_params; |
355 }; | 361 }; |
356 | 362 |
357 } // namespace content | 363 } // namespace content |
358 | 364 |
359 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 365 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |