diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 22:20:35 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-22 22:20:35 +0000 |
commit | 2fbaecf27edd63f4f760581b798a99dcdf78a5eb (patch) | |
tree | a974662967015c83e63ccd7944aac2d2dc784b8f /net/base/host_mapping_rules.cc | |
parent | a063c102fd36f61f4a0a01447f4b01ace4ffccdf (diff) | |
download | chromium_src-2fbaecf27edd63f4f760581b798a99dcdf78a5eb.zip chromium_src-2fbaecf27edd63f4f760581b798a99dcdf78a5eb.tar.gz chromium_src-2fbaecf27edd63f4f760581b798a99dcdf78a5eb.tar.bz2 |
Net: Get rid of ProxyServer::host_and_port() and friends.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3032017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_mapping_rules.cc')
-rw-r--r-- | net/base/host_mapping_rules.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/base/host_mapping_rules.cc b/net/base/host_mapping_rules.cc index 3296b0e..ab560a7 100644 --- a/net/base/host_mapping_rules.cc +++ b/net/base/host_mapping_rules.cc @@ -19,7 +19,7 @@ bool HostMappingRules::RewriteHost(HostPortPair* host_port) const { for (ExclusionRuleList::const_iterator it = exclusion_rules_.begin(); it != exclusion_rules_.end(); ++it) { const ExclusionRule& rule = *it; - if (MatchPatternASCII(host_port->host, rule.hostname_pattern)) + if (MatchPatternASCII(host_port->host(), rule.hostname_pattern)) return false; } @@ -28,12 +28,12 @@ bool HostMappingRules::RewriteHost(HostPortPair* host_port) const { it != map_rules_.end(); ++it) { const MapRule& rule = *it; - if (!MatchPatternASCII(host_port->host, rule.hostname_pattern)) + if (!MatchPatternASCII(host_port->host(), rule.hostname_pattern)) continue; // This rule doesn't apply. - host_port->host = rule.replacement_hostname; + host_port->set_host(rule.replacement_hostname); if (rule.replacement_port != -1) - host_port->port = rule.replacement_port; + host_port->set_port(rule.replacement_port); return true; } |