summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_bypass_rules.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_bypass_rules.cc')
-rw-r--r--net/proxy/proxy_bypass_rules.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
index 4674e25..3d622a8 100644
--- a/net/proxy/proxy_bypass_rules.cc
+++ b/net/proxy/proxy_bypass_rules.cc
@@ -25,7 +25,7 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
optional_port_(optional_port) {
}
- virtual bool Matches(const GURL& url) const {
+ virtual bool Matches(const GURL& url) const OVERRIDE {
if (optional_port_ != -1 && url.EffectiveIntPort() != optional_port_)
return false; // Didn't match port expectation.
@@ -37,7 +37,7 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
return MatchPattern(StringToLowerASCII(url.host()), hostname_pattern_);
}
- virtual std::string ToString() const {
+ virtual std::string ToString() const OVERRIDE {
std::string str;
if (!optional_scheme_.empty())
base::StringAppendF(&str, "%s://", optional_scheme_.c_str());
@@ -47,7 +47,7 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
return str;
}
- virtual Rule* Clone() const {
+ virtual Rule* Clone() const OVERRIDE {
return new HostnamePatternRule(optional_scheme_,
hostname_pattern_,
optional_port_);
@@ -61,18 +61,18 @@ class HostnamePatternRule : public ProxyBypassRules::Rule {
class BypassLocalRule : public ProxyBypassRules::Rule {
public:
- virtual bool Matches(const GURL& url) const {
+ virtual bool Matches(const GURL& url) const OVERRIDE {
const std::string& host = url.host();
if (host == "127.0.0.1" || host == "[::1]")
return true;
return host.find('.') == std::string::npos;
}
- virtual std::string ToString() const {
+ virtual std::string ToString() const OVERRIDE {
return "<local>";
}
- virtual Rule* Clone() const {
+ virtual Rule* Clone() const OVERRIDE {
return new BypassLocalRule();
}
};
@@ -93,7 +93,7 @@ class BypassIPBlockRule : public ProxyBypassRules::Rule {
prefix_length_in_bits_(prefix_length_in_bits) {
}
- virtual bool Matches(const GURL& url) const {
+ virtual bool Matches(const GURL& url) const OVERRIDE {
if (!url.HostIsIPAddress())
return false;
@@ -110,11 +110,11 @@ class BypassIPBlockRule : public ProxyBypassRules::Rule {
prefix_length_in_bits_);
}
- virtual std::string ToString() const {
+ virtual std::string ToString() const OVERRIDE {
return description_;
}
- virtual Rule* Clone() const {
+ virtual Rule* Clone() const OVERRIDE {
return new BypassIPBlockRule(description_,
optional_scheme_,
ip_prefix_,