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

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

Issue 1425823002: (DEPRECATED) Send navigation_start to browser process in DidStartProvisionalLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Stop calling didCreateDataSource for same-page navs Created 5 years, 1 month 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/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 5d9f22528208fe1beaa2dd7ec1b3c455b248e52c..44bc5a8b9974266b3aa6a3b9dee813cdb8a177f1 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -119,7 +119,8 @@ NavigationController* NavigatorImpl::GetController() {
void NavigatorImpl::DidStartProvisionalLoad(
RenderFrameHostImpl* render_frame_host,
- const GURL& url) {
+ const GURL& url,
+ const base::TimeTicks& navigation_start) {
bool is_main_frame = render_frame_host->frame_tree_node()->IsMainFrame();
bool is_error_page = (url.spec() == kUnreachableWebDataURL);
bool is_iframe_srcdoc = (url.spec() == kAboutSrcDocURL);
@@ -160,7 +161,7 @@ void NavigatorImpl::DidStartProvisionalLoad(
}
render_frame_host->SetNavigationHandle(NavigationHandleImpl::Create(
- validated_url, render_frame_host->frame_tree_node()));
+ validated_url, render_frame_host->frame_tree_node(), navigation_start));
}
void NavigatorImpl::DidFailProvisionalLoadWithError(
@@ -341,11 +342,12 @@ bool NavigatorImpl::NavigateToEntry(
? LOFI_OFF
: LOFI_UNSPECIFIED);
dest_render_frame_host->Navigate(
- entry.ConstructCommonNavigationParams(
- dest_url, dest_referrer, frame_entry, navigation_type, lofi_state),
+ entry.ConstructCommonNavigationParams(dest_url, dest_referrer,
+ frame_entry, navigation_type,
+ lofi_state, navigation_start),
entry.ConstructStartNavigationParams(),
entry.ConstructRequestNavigationParams(
- frame_entry, navigation_start, is_same_document_history_load,
+ frame_entry, is_same_document_history_load,
frame_tree_node->has_committed_real_load(),
controller_->GetPendingEntryIndex() == -1,
controller_->GetIndexOfEntry(&entry),

Powered by Google App Engine
This is Rietveld 408576698