OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/proxy/proxy_list.h" | 5 #include "net/proxy/proxy_list.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "base/strings/string_tokenizer.h" | 10 #include "base/strings/string_tokenizer.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "net/proxy/proxy_server.h" | 13 #include "net/proxy/proxy_server.h" |
14 | 14 |
15 using base::TimeDelta; | 15 using base::TimeDelta; |
16 using base::TimeTicks; | 16 using base::TimeTicks; |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 ProxyList::ProxyList() { | 20 ProxyList::ProxyList() { |
21 } | 21 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 retry_info.current_delay = proxy_retry_delay; | 221 retry_info.current_delay = proxy_retry_delay; |
222 retry_info.bad_until = TimeTicks().Now() + retry_info.current_delay; | 222 retry_info.bad_until = TimeTicks().Now() + retry_info.current_delay; |
223 (*proxy_retry_info)[key] = retry_info; | 223 (*proxy_retry_info)[key] = retry_info; |
224 } | 224 } |
225 net_log.AddEvent(NetLog::TYPE_PROXY_LIST_FALLBACK, | 225 net_log.AddEvent(NetLog::TYPE_PROXY_LIST_FALLBACK, |
226 NetLog::StringCallback("bad_proxy", &key)); | 226 NetLog::StringCallback("bad_proxy", &key)); |
227 } | 227 } |
228 } | 228 } |
229 | 229 |
230 } // namespace net | 230 } // namespace net |
OLD | NEW |