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

Unified Diff: net/proxy/proxy_resolver.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_resolver.h
diff --git a/net/proxy/proxy_resolver.h b/net/proxy/proxy_resolver.h
index 721d90f1f1cd15c56814de43a56be7ad9adbdf61..ab7f8bc716f6a3372944ee6b5cb23525c3c9b030 100644
--- a/net/proxy/proxy_resolver.h
+++ b/net/proxy/proxy_resolver.h
@@ -58,6 +58,13 @@ class NET_EXPORT_PRIVATE ProxyResolver {
// contain the actual script bytes rather than just the URL.
bool expects_pac_bytes() const { return expects_pac_bytes_; }
+ const std::string& default_my_ip_address() const {
+ return default_my_ip_address_;
+ }
+ void set_default_my_ip_address(const std::string& ip_address) {
+ default_my_ip_address_ = ip_address;
+ }
+
virtual void CancelSetPacScript() = 0;
// Called to set the PAC script backend to use.
@@ -70,6 +77,9 @@ class NET_EXPORT_PRIVATE ProxyResolver {
private:
const bool expects_pac_bytes_;
+ // Local IP address to use if DNS lookup fails (for Chrome OS).
+ std::string default_my_ip_address_;
+
DISALLOW_COPY_AND_ASSIGN(ProxyResolver);
};

Powered by Google App Engine
This is Rietveld 408576698