summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_info.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 05:35:40 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 05:35:40 +0000
commit874190c24578f3b6e41425b7b7d12df4a958c858 (patch)
tree4fe6234850a1c9112ec9547a62ae314cfa68b1c9 /net/proxy/proxy_info.h
parente77558d6c797ec4e75259a65ba886b11a474fc3a (diff)
downloadchromium_src-874190c24578f3b6e41425b7b7d12df4a958c858.zip
chromium_src-874190c24578f3b6e41425b7b7d12df4a958c858.tar.gz
chromium_src-874190c24578f3b6e41425b7b7d12df4a958c858.tar.bz2
Remove proxy_mode_ from the HttpNetworkTransaction since it
is redundant with proxy_info_. BUG=none TEST=covered by existing tests. Review URL: http://codereview.chromium.org/1809001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_info.h')
-rw-r--r--net/proxy/proxy_info.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/proxy/proxy_info.h b/net/proxy/proxy_info.h
index b18feb8..5555108 100644
--- a/net/proxy/proxy_info.h
+++ b/net/proxy/proxy_info.h
@@ -50,6 +50,20 @@ class ProxyInfo {
return proxy_list_.Get().is_direct();
}
+ // Returns true if the first valid proxy server is a http proxy.
+ bool is_http() const {
+ if (is_empty())
+ return false;
+ return proxy_server().is_http();
+ }
+
+ // Returns true if the first valid proxy server is a socks server.
+ bool is_socks() const {
+ if (is_empty())
+ return false;
+ return proxy_server().is_socks();
+ }
+
// Returns true if this proxy info has no proxies left to try.
bool is_empty() const {
return proxy_list_.IsEmpty();