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

Unified Diff: net/proxy/proxy_config.h

Issue 238433003: Provide Shill IP Address to myIpAddress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/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_;

Powered by Google App Engine
This is Rietveld 408576698