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

Unified Diff: net/url_request/url_request.h

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: Rebased Created 4 years, 2 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.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 6e8c8a6bdb9c91ff6c686fb7e5de98108117c693..5c3f81cd4f91806e15a2db75621f4887479c5523 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -31,6 +31,7 @@
#include "net/http/http_request_headers.h"
#include "net/http/http_response_info.h"
#include "net/log/net_log.h"
+#include "net/proxy/proxy_server.h"
#include "net/socket/connection_attempts.h"
#include "net/url_request/url_request_status.h"
#include "url/gurl.h"
@@ -631,9 +632,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Available at NetworkDelegate::NotifyHeadersReceived() time, which is before
// the more general response_info() is available, even though it is a subset.
- const HostPortPair& proxy_server() const {
- return proxy_server_;
- }
+ const ProxyServer& proxy_server() const { 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
@@ -849,7 +848,7 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
LoadTimingInfo load_timing_info_;
// The proxy server used for this request, if any.
- HostPortPair proxy_server_;
+ ProxyServer proxy_server_;
// The raw header size of the response.
int raw_header_size_;

Powered by Google App Engine
This is Rietveld 408576698