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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index eae9cd46bb8b6910c79c93eb67b4ac1215d7c657..0af319c16478ac796ac7fab768b3e384e4696748 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -11,6 +11,7 @@
#include "content/public/browser/navigation_throttle.h"
#include "content/public/common/referrer.h"
#include "net/base/net_errors.h"
+#include "net/http/http_response_info.h"
#include "ui/base/page_transition_types.h"
class GURL;
@@ -167,6 +168,12 @@ class CONTENT_EXPORT NavigationHandle {
// will not be reflected in the network stack.
virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0;
+ // Returns the connection info for the request, the default value is
+ // 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.
+ // connection info may change during the navigation (e.g. after encountering
+ // a server redirect).
+ virtual net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() = 0;
+
// Resumes a navigation that was previously deferred by a NavigationThrottle.
virtual void Resume() = 0;

Powered by Google App Engine
This is Rietveld 408576698