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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 1661423002: Solidify Entry discarding logic (NavigationHandle keeps its ID) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + creis review Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 316bf66638b0475740fb3bea1ff304abc14189a6..05a6a947aa783bfdd0f5ef0c3cee5da09ad343f7 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -35,9 +35,11 @@ scoped_ptr<NavigationHandleImpl> NavigationHandleImpl::Create(
FrameTreeNode* frame_tree_node,
bool is_synchronous,
bool is_srcdoc,
- const base::TimeTicks& navigation_start) {
- return scoped_ptr<NavigationHandleImpl>(new NavigationHandleImpl(
- url, frame_tree_node, is_synchronous, is_srcdoc, navigation_start));
+ const base::TimeTicks& navigation_start,
+ int pending_nav_entry_id) {
+ return scoped_ptr<NavigationHandleImpl>(
+ new NavigationHandleImpl(url, frame_tree_node, is_synchronous, is_srcdoc,
+ navigation_start, pending_nav_entry_id));
}
NavigationHandleImpl::NavigationHandleImpl(
@@ -45,7 +47,8 @@ NavigationHandleImpl::NavigationHandleImpl(
FrameTreeNode* frame_tree_node,
bool is_synchronous,
bool is_srcdoc,
- const base::TimeTicks& navigation_start)
+ const base::TimeTicks& navigation_start,
+ int pending_nav_entry_id)
: url_(url),
is_post_(false),
has_user_gesture_(false),
@@ -61,7 +64,8 @@ NavigationHandleImpl::NavigationHandleImpl(
is_transferring_(false),
frame_tree_node_(frame_tree_node),
next_index_(0),
- navigation_start_(navigation_start) {
+ navigation_start_(navigation_start),
+ pending_nav_entry_id_(pending_nav_entry_id) {
DCHECK(!navigation_start.is_null());
GetDelegate()->DidStartNavigation(this);
}

Powered by Google App Engine
This is Rietveld 408576698