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

Unified Diff: net/url_request/url_request_job.h

Issue 1097303003: Plumb ConnectionAttempts from HttpNetworkTransaction to URLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: rebase Created 5 years, 7 months 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: 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,

Powered by Google App Engine
This is Rietveld 408576698