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

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

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final method name change. Created 5 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 unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/navigation_request.h ('k') | content/browser/frame_host/navigator.h » ('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 #include "content/browser/frame_host/navigation_request.h" 5 #include "content/browser/frame_host/navigation_request.h"
6 6
7 #include "content/browser/frame_host/frame_tree_node.h" 7 #include "content/browser/frame_host/frame_tree_node.h"
8 #include "content/browser/frame_host/navigation_request_info.h" 8 #include "content/browser/frame_host/navigation_request_info.h"
9 #include "content/browser/frame_host/navigator.h" 9 #include "content/browser/frame_host/navigator.h"
10 #include "content/browser/loader/navigation_url_loader.h" 10 #include "content/browser/loader/navigation_url_loader.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 DCHECK(state_ == STARTED); 101 DCHECK(state_ == STARTED);
102 state_ = RESPONSE_STARTED; 102 state_ = RESPONSE_STARTED;
103 frame_tree_node_->navigator()->CommitNavigation(frame_tree_node_, 103 frame_tree_node_->navigator()->CommitNavigation(frame_tree_node_,
104 response.get(), body.Pass()); 104 response.get(), body.Pass());
105 } 105 }
106 106
107 void NavigationRequest::OnRequestFailed(int net_error) { 107 void NavigationRequest::OnRequestFailed(int net_error) {
108 DCHECK(state_ == STARTED); 108 DCHECK(state_ == STARTED);
109 state_ = FAILED; 109 state_ = FAILED;
110 // TODO(davidben): Network failures should display a network error page. 110 // TODO(davidben): Network failures should display a network error page.
111 NOTIMPLEMENTED(); 111 NOTIMPLEMENTED() << " where net_error=" << net_error;
112 }
113
114 void NavigationRequest::OnRequestStarted(base::TimeTicks timestamp) {
115 frame_tree_node_->navigator()->LogResourceRequestTime(timestamp,
116 common_params_.url);
112 } 117 }
113 118
114 } // namespace content 119 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.h ('k') | content/browser/frame_host/navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698