OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/proxy/proxy_bypass_rules.h" | 5 #include "net/proxy/proxy_bypass_rules.h" |
6 | 6 |
7 #include "base/logging.h" | |
8 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
9 #include "base/string_tokenizer.h" | 8 #include "base/string_tokenizer.h" |
10 #include "base/string_util.h" | 9 #include "base/string_util.h" |
11 #include "net/base/net_util.h" | 10 #include "net/base/net_util.h" |
12 | 11 |
13 namespace net { | 12 namespace net { |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 class HostnamePatternRule : public ProxyBypassRules::Rule { | 16 class HostnamePatternRule : public ProxyBypassRules::Rule { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 return AddRuleForHostname(scheme, raw, port); | 273 return AddRuleForHostname(scheme, raw, port); |
275 } | 274 } |
276 | 275 |
277 bool ProxyBypassRules::AddRuleFromStringInternalWithLogging( | 276 bool ProxyBypassRules::AddRuleFromStringInternalWithLogging( |
278 const std::string& raw, | 277 const std::string& raw, |
279 bool use_hostname_suffix_matching) { | 278 bool use_hostname_suffix_matching) { |
280 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching); | 279 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching); |
281 } | 280 } |
282 | 281 |
283 } // namespace net | 282 } // namespace net |
OLD | NEW |