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

Side by Side Diff: content/browser/frame_host/navigator_impl.cc

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Fix 2 WebContentsImplTest by assigning a document_sequence_number. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/browser/frame_host/navigator_impl.h" 5 #include "content/browser/frame_host/navigator_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 navigation_start, dest_url, entry.restore_type())); 415 navigation_start, dest_url, entry.restore_type()));
416 // Create the navigation parameters. 416 // Create the navigation parameters.
417 FrameMsg_Navigate_Type::Value navigation_type = GetNavigationType( 417 FrameMsg_Navigate_Type::Value navigation_type = GetNavigationType(
418 controller_->GetBrowserContext(), entry, reload_type); 418 controller_->GetBrowserContext(), entry, reload_type);
419 dest_render_frame_host->Navigate( 419 dest_render_frame_host->Navigate(
420 entry.ConstructCommonNavigationParams( 420 entry.ConstructCommonNavigationParams(
421 frame_entry, post_body, dest_url, dest_referrer, navigation_type, 421 frame_entry, post_body, dest_url, dest_referrer, navigation_type,
422 lofi_state, navigation_start), 422 lofi_state, navigation_start),
423 entry.ConstructStartNavigationParams(), 423 entry.ConstructStartNavigationParams(),
424 entry.ConstructRequestNavigationParams( 424 entry.ConstructRequestNavigationParams(
425 frame_entry, is_same_document_history_load, 425 frame_entry,
426 false, // is_same_document_navigation
nasko 2017/01/10 00:19:00 Why are we guaranteed here it isn't same document?
arthursonzogni 2017/01/12 17:32:30 You are right. It was something I forgot. I will f
427 is_same_document_history_load,
426 is_history_navigation_in_new_child, 428 is_history_navigation_in_new_child,
427 entry.GetSubframeUniqueNames(frame_tree_node), 429 entry.GetSubframeUniqueNames(frame_tree_node),
428 frame_tree_node->has_committed_real_load(), 430 frame_tree_node->has_committed_real_load(),
429 controller_->GetPendingEntryIndex() == -1, 431 controller_->GetPendingEntryIndex() == -1,
430 controller_->GetIndexOfEntry(&entry), 432 controller_->GetIndexOfEntry(&entry),
431 controller_->GetLastCommittedEntryIndex(), 433 controller_->GetLastCommittedEntryIndex(),
432 controller_->GetEntryCount())); 434 controller_->GetEntryCount()));
433 } else { 435 } else {
434 dest_render_frame_host->navigation_handle()->set_is_transferring(false); 436 dest_render_frame_host->navigation_handle()->set_is_transferring(false);
435 } 437 }
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 if (navigation_handle) 1267 if (navigation_handle)
1266 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); 1268 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID());
1267 1269
1268 controller_->SetPendingEntry(std::move(entry)); 1270 controller_->SetPendingEntry(std::move(entry));
1269 if (delegate_) 1271 if (delegate_)
1270 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); 1272 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL);
1271 } 1273 }
1272 } 1274 }
1273 1275
1274 } // namespace content 1276 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698