Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index e623c202e71f1b0ed412e5998cd51f0015e3ab3b..16ada0c422703264bf417e15aab8823ee8becf0b 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -28,6 +28,7 @@ |
#include "net/http/http_request_headers.h" |
#include "net/http/http_response_info.h" |
#include "net/log/net_log.h" |
+#include "net/socket/connection_attempts.h" |
#include "net/url_request/url_request_status.h" |
#include "url/gurl.h" |
@@ -608,6 +609,11 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
return proxy_server_; |
} |
+ // Gets the connection attempts made in the process of servicing this |
+ // URLRequest. Only guaranteed to be valid if called after the request fails |
+ // or after the response headers are received. |
+ void GetConnectionAttempts(ConnectionAttempts* out) const; |
+ |
protected: |
// Allow the URLRequestJob class to control the is_pending() flag. |
void set_is_pending(bool value) { is_pending_ = value; } |