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

Unified Diff: net/proxy/proxy_config.h

Issue 115029: Making command-line specified proxy settings more flexible - allowing for set... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net.gyp ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_config.h
===================================================================
--- net/proxy/proxy_config.h (revision 15852)
+++ net/proxy/proxy_config.h (working copy)
@@ -42,6 +42,8 @@
TYPE_PROXY_PER_SCHEME,
};
+ // Note that the default of TYPE_NO_RULES results in direct connections
+ // being made when using this ProxyConfig.
ProxyRules() : type(TYPE_NO_RULES) {}
bool empty() const {
@@ -91,6 +93,11 @@
ProxyRules proxy_rules;
+ // Parses entries from a comma-separated list of hosts for which proxy
+ // configurations should be bypassed. Clears proxy_bypass and sets it to the
+ // resulting list.
+ void ParseNoProxyList(const std::string& no_proxy);
+
// Indicates a list of hosts that should bypass any proxy configuration. For
// these hosts, a direct connection should always be used.
// The form <host>:<port> is also supported, meaning that only
@@ -103,6 +110,10 @@
// Returns true if the given config is equivalent to this config.
bool Equals(const ProxyConfig& other) const;
+ // Returns true if this config could possibly require the proxy service to
+ // use a PAC resolver.
+ bool MayRequirePACResolver() const;
+
private:
int id_;
};
« no previous file with comments | « net/net.gyp ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698