diff options
author | davidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 16:58:38 +0000 |
---|---|---|
committer | davidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 16:58:38 +0000 |
commit | 1a5971973b9b19d413831d2d6206770aa3529775 (patch) | |
tree | 8977b7fe20b88a56a4755cda6f05ca8ec56e6a03 /net/proxy/proxy_bypass_rules.h | |
parent | a11fa3437fdbb89ebe1e3a61cb4fc1de1ae4a352 (diff) | |
download | chromium_src-1a5971973b9b19d413831d2d6206770aa3529775.zip chromium_src-1a5971973b9b19d413831d2d6206770aa3529775.tar.gz chromium_src-1a5971973b9b19d413831d2d6206770aa3529775.tar.bz2 |
KDE treats all host patterns as wildcard patterns
Also correct a test description that became inaccurate when we supported a
reversed bypass list, and remove spaces from host rules earlier. (KDE actually
treats both comma and space as valid delimiters anyway.)
R=wtc,eroman
BUG=48486
TEST=ProxyConfigServiceLinuxTest.KDEConfigParser
Review URL: http://codereview.chromium.org/2848041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_bypass_rules.h')
-rw-r--r-- | net/proxy/proxy_bypass_rules.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/proxy/proxy_bypass_rules.h b/net/proxy/proxy_bypass_rules.h index 76d1dcc..267fdc9 100644 --- a/net/proxy/proxy_bypass_rules.h +++ b/net/proxy/proxy_bypass_rules.h @@ -137,6 +137,17 @@ class ProxyBypassRules { // bool AddRuleFromString(const std::string& raw); + // This is a variant of AddFromString, which interprets hostname patterns as + // suffix tests rather than hostname tests (so "google.com" would actually + // match "*google.com"). This is used for KDE which interprets every rule as + // a suffix test. It is less flexible, since with the suffix matching format + // you can't match an individual host. + // + // Returns true if the rule was successfully added. + // + // NOTE: Use AddRuleFromString() unless you truly need this behavior. + bool AddRuleFromStringUsingSuffixMatching(const std::string& raw); + // Removes all the rules. void Clear(); |