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

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

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 private: 105 private:
106 // NavigationURLLoaderDelegate implementation. 106 // NavigationURLLoaderDelegate implementation.
107 void OnRequestRedirected( 107 void OnRequestRedirected(
108 const net::RedirectInfo& redirect_info, 108 const net::RedirectInfo& redirect_info,
109 const scoped_refptr<ResourceResponse>& response) override; 109 const scoped_refptr<ResourceResponse>& response) override;
110 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 110 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
111 scoped_ptr<StreamHandle> body) override; 111 scoped_ptr<StreamHandle> body) override;
112 void OnRequestFailed(int net_error) override; 112 void OnRequestFailed(int net_error) override;
113 void AboutToBeginNavigation(base::TimeTicks timestamp) override;
clamy 2015/01/27 12:35:03 How about NavigationStarted? This is called after
carlosk 2015/01/27 17:12:03 Agreed but I don't think NavigationStarted is much
clamy 2015/01/28 13:44:21 I don't like AboutToAttemptFirstNetworkRequest muc
carlosk 2015/01/28 15:21:08 I agree with your point on the AboutTo not being p
113 114
114 FrameTreeNode* frame_tree_node_; 115 FrameTreeNode* frame_tree_node_;
115 116
116 // Initialized on creation of the NavigationRequest. Sent to the renderer when 117 // Initialized on creation of the NavigationRequest. Sent to the renderer when
117 // the navigation is ready to commit. 118 // the navigation is ready to commit.
118 // Note: When the navigation is ready to commit, the url in |common_params| 119 // Note: When the navigation is ready to commit, the url in |common_params|
119 // will be set to the final navigation url, obtained after following all 120 // will be set to the final navigation url, obtained after following all
120 // redirects. 121 // redirects.
121 CommonNavigationParams common_params_; 122 CommonNavigationParams common_params_;
122 const CommitNavigationParams commit_params_; 123 const CommitNavigationParams commit_params_;
(...skipping 10 matching lines...) Expand all
133 NavigationEntryImpl::RestoreType restore_type_; 134 NavigationEntryImpl::RestoreType restore_type_;
134 bool is_view_source_; 135 bool is_view_source_;
135 int bindings_; 136 int bindings_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 138 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
138 }; 139 };
139 140
140 } // namespace content 141 } // namespace content
141 142
142 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 143 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698