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 2e30d1ed3be8f0c9f5b28d401e3233dc98a36262..d1eb61a4c6310ee9ede1694db154ab3627305e2d 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -33,13 +33,15 @@ void UpdateThrottleCheckResult( |
// static |
scoped_ptr<NavigationHandleImpl> NavigationHandleImpl::Create( |
const GURL& url, |
- FrameTreeNode* frame_tree_node) { |
+ FrameTreeNode* frame_tree_node, |
+ double navigation_start) { |
return scoped_ptr<NavigationHandleImpl>( |
- new NavigationHandleImpl(url, frame_tree_node)); |
+ new NavigationHandleImpl(url, frame_tree_node, navigation_start)); |
} |
NavigationHandleImpl::NavigationHandleImpl(const GURL& url, |
- FrameTreeNode* frame_tree_node) |
+ FrameTreeNode* frame_tree_node, |
+ double navigation_start) |
: url_(url), |
is_post_(false), |
has_user_gesture_(false), |
@@ -51,7 +53,8 @@ NavigationHandleImpl::NavigationHandleImpl(const GURL& url, |
state_(INITIAL), |
is_transferring_(false), |
frame_tree_node_(frame_tree_node), |
- next_index_(0) { |
+ next_index_(0), |
+ navigation_start_(navigation_start) { |
// PlzNavigate |
// Initialize the ServiceWorkerNavigationHandle if it can be created for this |
// frame. |
@@ -94,6 +97,10 @@ bool NavigationHandleImpl::IsInMainFrame() { |
return frame_tree_node_->IsMainFrame(); |
} |
+double NavigationHandleImpl::GetNavigationStart() { |
+ return navigation_start_; |
+} |
+ |
bool NavigationHandleImpl::IsPost() { |
CHECK_NE(INITIAL, state_) |
<< "This accessor should not be called before the request is started."; |