diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-28 05:35:40 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-28 05:35:40 +0000 |
commit | 874190c24578f3b6e41425b7b7d12df4a958c858 (patch) | |
tree | 4fe6234850a1c9112ec9547a62ae314cfa68b1c9 /net/proxy/proxy_info.h | |
parent | e77558d6c797ec4e75259a65ba886b11a474fc3a (diff) | |
download | chromium_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.h | 14 |
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(); |