| 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 #ifndef NET_PROXY_PROXY_BYPASS_RULES_H_ | 5 #ifndef NET_PROXY_PROXY_BYPASS_RULES_H_ |
| 6 #define NET_PROXY_PROXY_BYPASS_RULES_H_ | 6 #define NET_PROXY_PROXY_BYPASS_RULES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" |
| 11 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 | 16 |
| 16 // ProxyBypassRules describes the set of URLs that should bypass the proxy | 17 // ProxyBypassRules describes the set of URLs that should bypass the proxy |
| 17 // settings, as a list of rules. A URL is said to match the bypass rules | 18 // settings, as a list of rules. A URL is said to match the bypass rules |
| 18 // if it matches any one of these rules. | 19 // if it matches any one of these rules. |
| 19 class NET_EXPORT ProxyBypassRules { | 20 class NET_EXPORT ProxyBypassRules { |
| 20 public: | 21 public: |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 bool use_hostname_suffix_matching); | 171 bool use_hostname_suffix_matching); |
| 171 bool AddRuleFromStringInternalWithLogging(const std::string& raw, | 172 bool AddRuleFromStringInternalWithLogging(const std::string& raw, |
| 172 bool use_hostname_suffix_matching); | 173 bool use_hostname_suffix_matching); |
| 173 | 174 |
| 174 RuleList rules_; | 175 RuleList rules_; |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace net | 178 } // namespace net |
| 178 | 179 |
| 179 #endif // NET_PROXY_PROXY_BYPASS_RULES_H_ | 180 #endif // NET_PROXY_PROXY_BYPASS_RULES_H_ |
| OLD | NEW |