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

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

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Allow renderer-initiated reloads. 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_history_load,
231 bool is_history_navigation_in_new_child, 230 bool is_history_navigation_in_new_child,
232 std::map<std::string, bool> subframe_unique_names, 231 std::map<std::string, bool> subframe_unique_names,
233 bool has_committed_real_load, 232 bool has_committed_real_load,
234 bool intended_as_new_entry, 233 bool intended_as_new_entry,
235 int pending_history_list_offset, 234 int pending_history_list_offset,
236 int current_history_list_offset, 235 int current_history_list_offset,
237 int current_history_list_length, 236 int current_history_list_length,
238 bool is_view_source, 237 bool is_view_source,
239 bool should_clear_history_list, 238 bool should_clear_history_list,
240 bool has_user_gesture); 239 bool has_user_gesture);
(...skipping 16 matching lines...) Expand all
257 256
258 // Opaque history state (received by ViewHostMsg_UpdateState). 257 // Opaque history state (received by ViewHostMsg_UpdateState).
259 PageState page_state; 258 PageState page_state;
260 259
261 // For browser-initiated navigations, this is the unique id of the 260 // For browser-initiated navigations, this is the unique id of the
262 // NavigationEntry being navigated to. (For renderer-initiated navigations it 261 // 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 262 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in
264 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. 263 // the resulting FrameHostMsg_DidCommitProvisionalLoad message.
265 int nav_entry_id; 264 int nav_entry_id;
266 265
267 // For history navigations, this indicates whether the load will stay within
268 // the same document. Defaults to false.
269 bool is_same_document_history_load;
270
271 // Whether this is a history navigation in a newly created child frame, in 266 // 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 267 // which case the browser process is instructing the renderer process to load
273 // a URL from a session history item. Defaults to false. 268 // a URL from a session history item. Defaults to false.
274 bool is_history_navigation_in_new_child; 269 bool is_history_navigation_in_new_child;
275 270
276 // If this is a history navigation, this contains a map of frame unique names 271 // If this is a history navigation, this contains a map of frame unique names
277 // to |is_about_blank| for immediate children of the frame being navigated for 272 // to |is_about_blank| for immediate children of the frame being navigated for
278 // which there are history items. The renderer process only needs to check 273 // which there are history items. The renderer process only needs to check
279 // with the browser process for newly created subframes that have these unique 274 // with the browser process for newly created subframes that have these unique
280 // names (and only when not staying on about:blank). 275 // names (and only when not staying on about:blank).
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 ~NavigationParams(); 349 ~NavigationParams();
355 350
356 CommonNavigationParams common_params; 351 CommonNavigationParams common_params;
357 StartNavigationParams start_params; 352 StartNavigationParams start_params;
358 RequestNavigationParams request_params; 353 RequestNavigationParams request_params;
359 }; 354 };
360 355
361 } // namespace content 356 } // namespace content
362 357
363 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 358 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698