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

Side by Side Diff: content/public/browser/navigation_handle.h

Issue 2457583007: [PageLoadMetrics] Create page load timing metrics for H2/QUIC/H1 pages (Closed)
Patch Set: Address comments from PS3 Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/navigation_throttle.h" 11 #include "content/public/browser/navigation_throttle.h"
12 #include "content/public/common/referrer.h" 12 #include "content/public/common/referrer.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/http/http_response_info.h"
14 #include "ui/base/page_transition_types.h" 15 #include "ui/base/page_transition_types.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace net { 19 namespace net {
19 class HttpResponseHeaders; 20 class HttpResponseHeaders;
20 } // namespace net 21 } // namespace net
21 22
22 namespace content { 23 namespace content {
23 class NavigationData; 24 class NavigationData;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // GetNetErrorCode will be net::OK. 161 // GetNetErrorCode will be net::OK.
161 virtual bool IsErrorPage() = 0; 162 virtual bool IsErrorPage() = 0;
162 163
163 // Returns the response headers for the request, or nullptr if there aren't 164 // Returns the response headers for the request, or nullptr if there aren't
164 // any response headers or they have not been received yet. The response 165 // any response headers or they have not been received yet. The response
165 // headers may change during the navigation (e.g. after encountering a server 166 // headers may change during the navigation (e.g. after encountering a server
166 // redirect). The headers returned should not be modified, as modifications 167 // redirect). The headers returned should not be modified, as modifications
167 // will not be reflected in the network stack. 168 // will not be reflected in the network stack.
168 virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0; 169 virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0;
169 170
171 // Returns the connection info for the request, the default value is
172 // CONNECTION_INFO_UNKNOWN if there hasn't been a response yet. The
clamy 2016/11/02 14:09:27 nit: precise that a response may mean a redirect.
jkarlin 2016/11/02 15:14:21 Done.
173 // connection info may change during the navigation (e.g. after encountering
174 // a server redirect).
175 virtual net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() = 0;
176
170 // Resumes a navigation that was previously deferred by a NavigationThrottle. 177 // Resumes a navigation that was previously deferred by a NavigationThrottle.
171 virtual void Resume() = 0; 178 virtual void Resume() = 0;
172 179
173 // Cancels a navigation that was previously deferred by a NavigationThrottle. 180 // Cancels a navigation that was previously deferred by a NavigationThrottle.
174 // |result| should be equal to NavigationThrottle::CANCEL or 181 // |result| should be equal to NavigationThrottle::CANCEL or
175 // NavigationThrottle::CANCEL_AND_IGNORE. 182 // NavigationThrottle::CANCEL_AND_IGNORE.
176 virtual void CancelDeferredNavigation( 183 virtual void CancelDeferredNavigation(
177 NavigationThrottle::ThrottleCheckResult result) = 0; 184 NavigationThrottle::ThrottleCheckResult result) = 0;
178 185
179 // Testing methods ---------------------------------------------------------- 186 // Testing methods ----------------------------------------------------------
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 229
223 // The NavigationData that the embedder returned from 230 // The NavigationData that the embedder returned from
224 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 231 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
225 // be a clone of the NavigationData. 232 // be a clone of the NavigationData.
226 virtual NavigationData* GetNavigationData() = 0; 233 virtual NavigationData* GetNavigationData() = 0;
227 }; 234 };
228 235
229 } // namespace content 236 } // namespace content
230 237
231 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 238 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698