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