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-07-20 17:55:53 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 17:55:53 +0000
commit224c0ad4d0d66825b957812a06c0e65d8d811ea7 (patch)
treeac7a516901cb9ae31fcf373e5ae1520a4b3e1b71 /net/proxy/proxy_info.h
parent7b92c41ccc32a7b8a9a439a9a2a45d635a8d9caf (diff)
downloadchromium_src-224c0ad4d0d66825b957812a06c0e65d8d811ea7.zip
chromium_src-224c0ad4d0d66825b957812a06c0e65d8d811ea7.tar.gz
chromium_src-224c0ad4d0d66825b957812a06c0e65d8d811ea7.tar.bz2
Add some plumbing for in-progress work on enabling SSL proxy support.
BUG=29625 TEST=none Review URL: http://codereview.chromium.org/2832057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_info.h')
-rw-r--r--net/proxy/proxy_info.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/proxy/proxy_info.h b/net/proxy/proxy_info.h
index ec5d05a..2531c6d 100644
--- a/net/proxy/proxy_info.h
+++ b/net/proxy/proxy_info.h
@@ -50,7 +50,14 @@ class ProxyInfo {
return proxy_list_.Get().is_direct();
}
- // Returns true if the first valid proxy server is a http proxy.
+ // Returns true if the first valid proxy server is an https proxy.
+ bool is_https() const {
+ if (is_empty())
+ return false;
+ return proxy_server().is_https();
+ }
+
+ // Returns true if the first valid proxy server is an http proxy.
bool is_http() const {
if (is_empty())
return false;