Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Side by Side Diff: net/proxy/proxy_bypass_rules.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/net_api.h" 13 #include "net/base/net_export.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 // ProxyBypassRules describes the set of URLs that should bypass the proxy 17 // ProxyBypassRules describes the set of URLs that should bypass the proxy
18 // 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
19 // if it matches any one of these rules. 19 // if it matches any one of these rules.
20 class NET_API ProxyBypassRules { 20 class NET_EXPORT ProxyBypassRules {
21 public: 21 public:
22 // Interface for an individual proxy bypass rule. 22 // Interface for an individual proxy bypass rule.
23 class NET_API Rule { 23 class NET_EXPORT Rule {
24 public: 24 public:
25 Rule(); 25 Rule();
26 virtual ~Rule(); 26 virtual ~Rule();
27 27
28 // Returns true if |url| matches the rule. 28 // Returns true if |url| matches the rule.
29 virtual bool Matches(const GURL& url) const = 0; 29 virtual bool Matches(const GURL& url) const = 0;
30 30
31 // Returns a string representation of this rule. This is used both for 31 // Returns a string representation of this rule. This is used both for
32 // visualizing the rules, and also to test equality of a rules list. 32 // visualizing the rules, and also to test equality of a rules list.
33 virtual std::string ToString() const = 0; 33 virtual std::string ToString() const = 0;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool use_hostname_suffix_matching); 174 bool use_hostname_suffix_matching);
175 bool AddRuleFromStringInternalWithLogging(const std::string& raw, 175 bool AddRuleFromStringInternalWithLogging(const std::string& raw,
176 bool use_hostname_suffix_matching); 176 bool use_hostname_suffix_matching);
177 177
178 RuleList rules_; 178 RuleList rules_;
179 }; 179 };
180 180
181 } // namespace net 181 } // namespace net
182 182
183 #endif // NET_PROXY_PROXY_BYPASS_RULES_H_ 183 #endif // NET_PROXY_PROXY_BYPASS_RULES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698