summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_service.h')
-rw-r--r--net/proxy/proxy_service.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/proxy/proxy_service.h b/net/proxy/proxy_service.h
index 6639911..7e4e306 100644
--- a/net/proxy/proxy_service.h
+++ b/net/proxy/proxy_service.h
@@ -27,6 +27,7 @@ class GURL;
namespace base {
class MessageLoop;
class SingleThreadTaskRunner;
+class TimeDelta;
} // namespace base
namespace net {
@@ -147,10 +148,13 @@ class NET_EXPORT ProxyService : public NetworkChangeNotifier::IPAddressObserver,
const BoundNetLog& net_log);
// Explicitly trigger proxy fallback for the given |results| by updating our
- // list of bad proxies to include the first entry of |results|. Returns true
- // if there will be at least one proxy remaining in the list after fallback
- // and false otherwise.
- bool MarkProxyAsBad(const ProxyInfo& results, const BoundNetLog& net_log);
+ // list of bad proxies to include the first entry of |results|. Will retry
+ // after |retry_delay| if positive, and will use the default proxy retry
+ // duration otherwise. Returns true if there will be at least one proxy
+ // remaining in the list after fallback and false otherwise.
+ bool MarkProxyAsBad(const ProxyInfo& results,
+ base::TimeDelta retry_delay,
+ const BoundNetLog& net_log);
// Called to report that the last proxy connection succeeded. If |proxy_info|
// has a non empty proxy_retry_info map, the proxies that have been tried (and