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

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

Issue 2316003002: Notify the renderer if a history navigation has no subframe items. (Closed)
Patch Set: Fix indent. Created 4 years, 3 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 RequestNavigationParams(); 221 RequestNavigationParams();
222 RequestNavigationParams(bool is_overriding_user_agent, 222 RequestNavigationParams(bool is_overriding_user_agent,
223 const std::vector<GURL>& redirects, 223 const std::vector<GURL>& redirects,
224 bool can_load_local_resources, 224 bool can_load_local_resources,
225 base::Time request_time, 225 base::Time request_time,
226 const PageState& page_state, 226 const PageState& page_state,
227 int32_t page_id, 227 int32_t page_id,
228 int nav_entry_id, 228 int nav_entry_id,
229 bool is_same_document_history_load, 229 bool is_same_document_history_load,
230 bool is_history_navigation_in_new_child, 230 bool is_history_navigation_in_new_child,
231 bool has_subtree_history_items,
231 bool has_committed_real_load, 232 bool has_committed_real_load,
232 bool intended_as_new_entry, 233 bool intended_as_new_entry,
233 int pending_history_list_offset, 234 int pending_history_list_offset,
234 int current_history_list_offset, 235 int current_history_list_offset,
235 int current_history_list_length, 236 int current_history_list_length,
236 bool is_view_source, 237 bool is_view_source,
237 bool should_clear_history_list); 238 bool should_clear_history_list);
238 RequestNavigationParams(const RequestNavigationParams& other); 239 RequestNavigationParams(const RequestNavigationParams& other);
239 ~RequestNavigationParams(); 240 ~RequestNavigationParams();
240 241
(...skipping 30 matching lines...) Expand all
271 272
272 // For history navigations, this indicates whether the load will stay within 273 // For history navigations, this indicates whether the load will stay within
273 // the same document. Defaults to false. 274 // the same document. Defaults to false.
274 bool is_same_document_history_load; 275 bool is_same_document_history_load;
275 276
276 // 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
277 // 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
278 // a URL from a session history item. Defaults to false. 279 // a URL from a session history item. Defaults to false.
279 bool is_history_navigation_in_new_child; 280 bool is_history_navigation_in_new_child;
280 281
282 // If this is a history navigation, this indicates whether the browser process
283 // is aware of any subframe history items for the given frame. If not, the
284 // renderer does not need to check with the browser if any subframes are
285 // created during the navigation.
286 // TODO(creis): Expand this to a data structure of unique names and
287 // corresponding PageStates in https://crbug.com/639842.
288 bool has_subtree_history_items;
289
281 // Whether the frame being navigated has already committed a real page, which 290 // Whether the frame being navigated has already committed a real page, which
282 // affects how new navigations are classified in the renderer process. 291 // affects how new navigations are classified in the renderer process.
283 // This currently is only ever set to true in --site-per-process mode. 292 // This currently is only ever set to true in --site-per-process mode.
284 // TODO(creis): Create FrameNavigationEntries by default so this always works. 293 // TODO(creis): Create FrameNavigationEntries by default so this always works.
285 bool has_committed_real_load; 294 bool has_committed_real_load;
286 295
287 // For browser-initiated navigations, this is true if this is a new entry 296 // For browser-initiated navigations, this is true if this is a new entry
288 // being navigated to. This is false otherwise. TODO(avi): Remove this when 297 // being navigated to. This is false otherwise. TODO(avi): Remove this when
289 // the pending entry situation is made sane and the browser keeps them around 298 // the pending entry situation is made sane and the browser keeps them around
290 // long enough to match them via nav_entry_id, above. 299 // long enough to match them via nav_entry_id, above.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ~NavigationParams(); 352 ~NavigationParams();
344 353
345 CommonNavigationParams common_params; 354 CommonNavigationParams common_params;
346 StartNavigationParams start_params; 355 StartNavigationParams start_params;
347 RequestNavigationParams request_params; 356 RequestNavigationParams request_params;
348 }; 357 };
349 358
350 } // namespace content 359 } // namespace content
351 360
352 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 361 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698