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 #ifndef NET_PROXY_PROXY_SERVICE_H_ | 5 #ifndef NET_PROXY_PROXY_SERVICE_H_ |
6 #define NET_PROXY_PROXY_SERVICE_H_ | 6 #define NET_PROXY_PROXY_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 // bad will not be retried until |retry_delay| has passed. Returns true if | 161 // bad will not be retried until |retry_delay| has passed. Returns true if |
162 // there will be at least one proxy remaining in the list after fallback and | 162 // there will be at least one proxy remaining in the list after fallback and |
163 // false otherwise. | 163 // false otherwise. |
164 bool MarkProxiesAsBadUntil(const ProxyInfo& results, | 164 bool MarkProxiesAsBadUntil(const ProxyInfo& results, |
165 base::TimeDelta retry_delay, | 165 base::TimeDelta retry_delay, |
166 const ProxyServer& another_bad_proxy, | 166 const ProxyServer& another_bad_proxy, |
167 const BoundNetLog& net_log); | 167 const BoundNetLog& net_log); |
168 | 168 |
169 // Called to report that the last proxy connection succeeded. If |proxy_info| | 169 // Called to report that the last proxy connection succeeded. If |proxy_info| |
170 // has a non empty proxy_retry_info map, the proxies that have been tried (and | 170 // has a non empty proxy_retry_info map, the proxies that have been tried (and |
171 // failed) for this request will be marked as bad. | 171 // failed) for this request will be marked as bad. |
Ryan Sleevi
2014/08/14 21:14:39
Add a param = update comment
Not at Google. Contact bengr
2014/08/14 23:45:22
Done.
| |
172 void ReportSuccess(const ProxyInfo& proxy_info); | 172 void ReportSuccess(const ProxyInfo& proxy_info, |
173 NetworkDelegate* network_delegate); | |
173 | 174 |
174 // Call this method with a non-null |pac_request| to cancel the PAC request. | 175 // Call this method with a non-null |pac_request| to cancel the PAC request. |
175 void CancelPacRequest(PacRequest* pac_request); | 176 void CancelPacRequest(PacRequest* pac_request); |
176 | 177 |
177 // Returns the LoadState for this |pac_request| which must be non-NULL. | 178 // Returns the LoadState for this |pac_request| which must be non-NULL. |
178 LoadState GetLoadState(const PacRequest* pac_request) const; | 179 LoadState GetLoadState(const PacRequest* pac_request) const; |
179 | 180 |
180 // Sets the ProxyScriptFetcher and DhcpProxyScriptFetcher dependencies. This | 181 // Sets the ProxyScriptFetcher and DhcpProxyScriptFetcher dependencies. This |
181 // is needed if the ProxyResolver is of type ProxyResolverWithoutFetch. | 182 // is needed if the ProxyResolver is of type ProxyResolverWithoutFetch. |
182 // ProxyService takes ownership of both objects. | 183 // ProxyService takes ownership of both objects. |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
424 | 425 |
425 // Whether child ProxyScriptDeciders should use QuickCheck | 426 // Whether child ProxyScriptDeciders should use QuickCheck |
426 bool quick_check_enabled_; | 427 bool quick_check_enabled_; |
427 | 428 |
428 DISALLOW_COPY_AND_ASSIGN(ProxyService); | 429 DISALLOW_COPY_AND_ASSIGN(ProxyService); |
429 }; | 430 }; |
430 | 431 |
431 } // namespace net | 432 } // namespace net |
432 | 433 |
433 #endif // NET_PROXY_PROXY_SERVICE_H_ | 434 #endif // NET_PROXY_PROXY_SERVICE_H_ |
OLD | NEW |