Chromium Code Reviews| 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; |