summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_info.cc')
-rw-r--r--net/proxy/proxy_info.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/proxy/proxy_info.cc b/net/proxy/proxy_info.cc
index 796d3417..ebefa84 100644
--- a/net/proxy/proxy_info.cc
+++ b/net/proxy/proxy_info.cc
@@ -4,11 +4,16 @@
#include "net/proxy/proxy_info.h"
+#include "net/proxy/proxy_retry_info.h"
+
namespace net {
ProxyInfo::ProxyInfo() : config_id_(ProxyConfig::INVALID_ID) {
}
+ProxyInfo::~ProxyInfo() {
+}
+
void ProxyInfo::Use(const ProxyInfo& other) {
proxy_list_ = other.proxy_list_;
}
@@ -29,4 +34,17 @@ std::string ProxyInfo::ToPacString() const {
return proxy_list_.ToPacString();
}
+bool ProxyInfo::Fallback(ProxyRetryInfoMap* proxy_retry_info) {
+ return proxy_list_.Fallback(proxy_retry_info);
+}
+
+void ProxyInfo::DeprioritizeBadProxies(
+ const ProxyRetryInfoMap& proxy_retry_info) {
+ proxy_list_.DeprioritizeBadProxies(proxy_retry_info);
+}
+
+void ProxyInfo::RemoveProxiesWithoutScheme(int scheme_bit_field) {
+ proxy_list_.RemoveProxiesWithoutScheme(scheme_bit_field);
+}
+
} // namespace net