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