summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_list.h')
-rw-r--r--net/proxy/proxy_list.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/proxy/proxy_list.h b/net/proxy/proxy_list.h
index 884dec9..f05d4cf 100644
--- a/net/proxy/proxy_list.h
+++ b/net/proxy/proxy_list.h
@@ -32,8 +32,12 @@ class ProxyList {
// |scheme_bit_field| is a bunch of ProxyServer::Scheme bitwise ORed together.
void RemoveProxiesWithoutScheme(int scheme_bit_field);
- // Returns the first valid proxy server in the list.
- ProxyServer Get() const;
+ // Returns true if there is nothing left in the ProxyList.
+ bool IsEmpty() const;
+
+ // Returns the first proxy server in the list. It is only valid to call
+ // this if !IsEmpty().
+ const ProxyServer& Get() const;
// Set the list by parsing the pac result |pac_string|.
// Some examples for |pac_string|: