OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_piece.h" | 9 #include "base/strings/string_piece.h" |
10 #include "base/strings/string_tokenizer.h" | 10 #include "base/strings/string_tokenizer.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 14 #include "net/base/ip_address_number.h" |
14 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 namespace { | 19 namespace { |
19 | 20 |
20 class HostnamePatternRule : public ProxyBypassRules::Rule { | 21 class HostnamePatternRule : public ProxyBypassRules::Rule { |
21 public: | 22 public: |
22 HostnamePatternRule(const std::string& optional_scheme, | 23 HostnamePatternRule(const std::string& optional_scheme, |
23 const std::string& hostname_pattern, | 24 const std::string& hostname_pattern, |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 return AddRuleForHostname(scheme, raw, port); | 339 return AddRuleForHostname(scheme, raw, port); |
339 } | 340 } |
340 | 341 |
341 bool ProxyBypassRules::AddRuleFromStringInternalWithLogging( | 342 bool ProxyBypassRules::AddRuleFromStringInternalWithLogging( |
342 const std::string& raw, | 343 const std::string& raw, |
343 bool use_hostname_suffix_matching) { | 344 bool use_hostname_suffix_matching) { |
344 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching); | 345 return AddRuleFromStringInternal(raw, use_hostname_suffix_matching); |
345 } | 346 } |
346 | 347 |
347 } // namespace net | 348 } // namespace net |
OLD | NEW |