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

Unified Diff: content/child/weburlresponse_extradata_impl.h

Issue 686313002: Make the proxy server HostPortPair available in document_state so that (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/child/weburlresponse_extradata_impl.h
diff --git a/content/child/weburlresponse_extradata_impl.h b/content/child/weburlresponse_extradata_impl.h
index be4d1bc5527c64bdbaa18cecf2c7748cfd0234a8..719b0693c4c05d9e124ec2cf272f3e0df13e1c09 100644
--- a/content/child/weburlresponse_extradata_impl.h
+++ b/content/child/weburlresponse_extradata_impl.h
@@ -35,6 +35,15 @@ class CONTENT_EXPORT WebURLResponseExtraDataImpl :
was_fetched_via_proxy_ = was_fetched_via_proxy;
}
+ // The proxy server used if this request was loaded via an explicit proxy
+ // (HTTP, SOCKS, etc).
+ net::HostPortPair proxy_server() const {
+ return proxy_server_;
+ }
+ void set_proxy_server(net::HostPortPair proxy_server) {
bengr 2014/10/31 15:59:53 This should probably take a const net::HostPortPai
+ proxy_server_ = proxy_server;
+ }
+
/// Flag whether this request was loaded via the SPDY protocol or not.
// SPDY is an experimental web protocol, see http://dev.chromium.org/spdy
bool was_fetched_via_spdy() const {
@@ -82,6 +91,7 @@ class CONTENT_EXPORT WebURLResponseExtraDataImpl :
std::string npn_negotiated_protocol_;
bool is_ftp_directory_listing_;
bool was_fetched_via_proxy_;
+ net::HostPortPair proxy_server_;
bool was_fetched_via_spdy_;
bool was_npn_negotiated_;
net::HttpResponseInfo::ConnectionInfo connection_info_;

Powered by Google App Engine
This is Rietveld 408576698