From 96e1933fd50fb512c5e678169d0d2c59841a7d1a Mon Sep 17 00:00:00 2001 From: "asanka@chromium.org" Date: Mon, 29 Aug 2011 16:39:00 +0000 Subject: Only mark a proxy as bad if we have confirmation that another proxy succeeded for the same request. BUG=87336 TEST=net_unittests --gtest_filter=ProxyServiceTest.ProxyFallback:HttpStreamFactoryTest.JobNotifiesProxy Review URL: http://codereview.chromium.org/7532011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98643 0039d316-1c4b-4281-b951-d872f2087c98 --- net/proxy/proxy_list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/proxy/proxy_list.h') diff --git a/net/proxy/proxy_list.h b/net/proxy/proxy_list.h index 707ceb6..a377553 100644 --- a/net/proxy/proxy_list.h +++ b/net/proxy/proxy_list.h @@ -10,6 +10,7 @@ #include #include "net/base/net_export.h" +#include "net/base/net_log.h" #include "net/proxy/proxy_retry_info.h" namespace net { @@ -61,7 +62,8 @@ class NET_EXPORT_PRIVATE ProxyList { // Marks the current proxy server as bad and deletes it from the list. The // list of known bad proxies is given by proxy_retry_info. Returns true if // there is another server available in the list. - bool Fallback(ProxyRetryInfoMap* proxy_retry_info); + bool Fallback(ProxyRetryInfoMap* proxy_retry_info, + const BoundNetLog& net_log); private: // List of proxies. -- cgit v1.1