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

Unified Diff: net/url_request/url_request.h

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: PS Created 4 years, 3 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 7a810a7e0a9ea09a149bff3f508fe9db84e70c1a..7a9694d6ad802cd72d6fb2f4481706aa9c995075 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"
@@ -635,9 +636,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
@@ -853,7 +852,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