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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/proxy/proxy_list.h b/net/proxy/proxy_list.h
index 209dd67..70208a1 100644
--- a/net/proxy/proxy_list.h
+++ b/net/proxy/proxy_list.h
@@ -31,6 +31,9 @@ class NET_EXPORT_PRIVATE ProxyList {
// Set the proxy list to a single entry, |proxy_server|.
void SetSingleProxyServer(const ProxyServer& proxy_server);
+ // Append a single proxy server to the end of the proxy list.
+ void AddProxyServer(const ProxyServer& proxy_server);
+
// De-prioritizes the proxies that we have cached as not working, by moving
// them to the end of the fallback list.
void DeprioritizeBadProxies(const ProxyRetryInfoMap& proxy_retry_info);
@@ -52,6 +55,9 @@ class NET_EXPORT_PRIVATE ProxyList {
// Returns the number of proxy servers in this list.
size_t size() const;
+ // Returns true if |*this| lists the same proxies as |other|.
+ bool Equals(const ProxyList& other) const;
+
// Returns the first proxy server in the list. It is only valid to call
// this if !IsEmpty().
const ProxyServer& Get() const;