| Index: net/proxy/proxy_config.h
|
| diff --git a/net/proxy/proxy_config.h b/net/proxy/proxy_config.h
|
| index e558174a4658bc558afaa331035b766548274e92..f9273b0f261f85fa82d6ea14d53bdfc177806bb4 100644
|
| --- a/net/proxy/proxy_config.h
|
| +++ b/net/proxy/proxy_config.h
|
| @@ -188,6 +188,12 @@ class NET_EXPORT ProxyConfig {
|
| return pac_url_;
|
| }
|
|
|
| + void set_my_ip_address(const std::string& ip_address) {
|
| + my_ip_address_ = ip_address;
|
| + }
|
| +
|
| + const std::string& my_ip_address() const { return my_ip_address_; }
|
| +
|
| void set_pac_mandatory(bool enable_pac_mandatory) {
|
| pac_mandatory_ = enable_pac_mandatory;
|
| }
|
| @@ -243,6 +249,9 @@ class NET_EXPORT ProxyConfig {
|
| // If non-empty, indicates the URL of the proxy auto-config file to use.
|
| GURL pac_url_;
|
|
|
| + // If non-empty, indicates the ip address to use for myIpAddress calls.
|
| + std::string my_ip_address_;
|
| +
|
| // If true, blocks all traffic in case fetching the pac script from |pac_url_|
|
| // fails. Only valid if |pac_url_| is non-empty.
|
| bool pac_mandatory_;
|
|
|