Chromium Code Reviews| Index: net/url_request/url_request_job.h |
| diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h |
| index b6ae4bbeb13af7129c5d875c019962cf94b672de..709b741eb475e9321d00cb87be42c8461c72ac08 100644 |
| --- a/net/url_request/url_request_job.h |
| +++ b/net/url_request/url_request_job.h |
| @@ -19,6 +19,7 @@ |
| #include "net/base/request_priority.h" |
| #include "net/base/upload_progress.h" |
| #include "net/cookies/canonical_cookie.h" |
| +#include "net/socket/connection_attempts.h" |
| #include "net/url_request/redirect_info.h" |
| #include "net/url_request/url_request.h" |
| #include "url/gurl.h" |
| @@ -226,6 +227,11 @@ class NET_EXPORT URLRequestJob |
| // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. |
| virtual void NotifyURLRequestDestroyed(); |
| + // Populates |out| with the vector of connection attempts made at the socket |
| + // layer in the course of executing the URLRequestJob. Should be called after |
| + // the response has been sent or after the connection has failed. |
|
Randy Smith (Not in Mondays)
2015/05/11 20:59:31
"response has been sent". Do you mean "response h
|
| + virtual void GetConnectionAttempts(ConnectionAttempts* out) const; |
| + |
| // Given |policy|, |referrer|, and |redirect_destination|, returns the |
| // referrer URL mandated by |request|'s referrer policy. |
| static GURL ComputeReferrerForRedirect(URLRequest::ReferrerPolicy policy, |