Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/common/navigation_params.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Very minor fix. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // start a browser-initiated navigation besides those in CommonNavigationParams. 231 // start a browser-initiated navigation besides those in CommonNavigationParams.
232 // PlzNavigate: sent to the renderer to make it issue a stream request for a 232 // PlzNavigate: sent to the renderer to make it issue a stream request for a
233 // navigation that is ready to commit. 233 // navigation that is ready to commit.
234 struct CONTENT_EXPORT RequestNavigationParams { 234 struct CONTENT_EXPORT RequestNavigationParams {
235 RequestNavigationParams(); 235 RequestNavigationParams();
236 RequestNavigationParams(bool is_overriding_user_agent, 236 RequestNavigationParams(bool is_overriding_user_agent,
237 const std::vector<GURL>& redirects, 237 const std::vector<GURL>& redirects,
238 bool can_load_local_resources, 238 bool can_load_local_resources,
239 const PageState& page_state, 239 const PageState& page_state,
240 int nav_entry_id, 240 int nav_entry_id,
241 bool is_same_document_fragment_change,
241 bool is_same_document_history_load, 242 bool is_same_document_history_load,
242 bool is_history_navigation_in_new_child, 243 bool is_history_navigation_in_new_child,
243 std::map<std::string, bool> subframe_unique_names, 244 std::map<std::string, bool> subframe_unique_names,
244 bool has_committed_real_load, 245 bool has_committed_real_load,
245 bool intended_as_new_entry, 246 bool intended_as_new_entry,
246 int pending_history_list_offset, 247 int pending_history_list_offset,
247 int current_history_list_offset, 248 int current_history_list_offset,
248 int current_history_list_length, 249 int current_history_list_length,
249 bool is_view_source, 250 bool is_view_source,
250 bool should_clear_history_list, 251 bool should_clear_history_list,
(...skipping 17 matching lines...) Expand all
268 269
269 // Opaque history state (received by ViewHostMsg_UpdateState). 270 // Opaque history state (received by ViewHostMsg_UpdateState).
270 PageState page_state; 271 PageState page_state;
271 272
272 // For browser-initiated navigations, this is the unique id of the 273 // For browser-initiated navigations, this is the unique id of the
273 // NavigationEntry being navigated to. (For renderer-initiated navigations it 274 // NavigationEntry being navigated to. (For renderer-initiated navigations it
274 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in 275 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in
275 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. 276 // the resulting FrameHostMsg_DidCommitProvisionalLoad message.
276 int nav_entry_id; 277 int nav_entry_id;
277 278
279 // PlzNavigate
280 // Whether this navigation is differing only in the fragment compared to the
281 // current frame's URL. In that case, no network request should be made.
282 bool is_same_document_fragment_change;
283
278 // For history navigations, this indicates whether the load will stay within 284 // For history navigations, this indicates whether the load will stay within
279 // the same document. Defaults to false. 285 // the same document. Defaults to false.
280 bool is_same_document_history_load; 286 bool is_same_document_history_load;
281 287
282 // Whether this is a history navigation in a newly created child frame, in 288 // Whether this is a history navigation in a newly created child frame, in
283 // which case the browser process is instructing the renderer process to load 289 // which case the browser process is instructing the renderer process to load
284 // a URL from a session history item. Defaults to false. 290 // a URL from a session history item. Defaults to false.
285 bool is_history_navigation_in_new_child; 291 bool is_history_navigation_in_new_child;
286 292
287 // If this is a history navigation, this contains a map of frame unique names 293 // 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
365 ~NavigationParams(); 371 ~NavigationParams();
366 372
367 CommonNavigationParams common_params; 373 CommonNavigationParams common_params;
368 StartNavigationParams start_params; 374 StartNavigationParams start_params;
369 RequestNavigationParams request_params; 375 RequestNavigationParams request_params;
370 }; 376 };
371 377
372 } // namespace content 378 } // namespace content
373 379
374 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 380 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698