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_; |