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_INFO_H_ | 5 #ifndef NET_PROXY_PROXY_INFO_H_ |
6 #define NET_PROXY_PROXY_INFO_H_ | 6 #define NET_PROXY_PROXY_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // available to try in proxy list_. | 110 // available to try in proxy list_. |
111 bool Fallback(const BoundNetLog& net_log); | 111 bool Fallback(const BoundNetLog& net_log); |
112 | 112 |
113 // De-prioritizes the proxies that we have cached as not working, by moving | 113 // De-prioritizes the proxies that we have cached as not working, by moving |
114 // them to the end of the proxy list. | 114 // them to the end of the proxy list. |
115 void DeprioritizeBadProxies(const ProxyRetryInfoMap& proxy_retry_info); | 115 void DeprioritizeBadProxies(const ProxyRetryInfoMap& proxy_retry_info); |
116 | 116 |
117 // Deletes any entry which doesn't have one of the specified proxy schemes. | 117 // Deletes any entry which doesn't have one of the specified proxy schemes. |
118 void RemoveProxiesWithoutScheme(int scheme_bit_field); | 118 void RemoveProxiesWithoutScheme(int scheme_bit_field); |
119 | 119 |
| 120 ProxyList& proxy_list() { return proxy_list_; } |
| 121 |
120 private: | 122 private: |
121 friend class ProxyService; | 123 friend class ProxyService; |
122 | 124 |
123 const ProxyRetryInfoMap& proxy_retry_info() const { | 125 const ProxyRetryInfoMap& proxy_retry_info() const { |
124 return proxy_retry_info_; | 126 return proxy_retry_info_; |
125 } | 127 } |
126 | 128 |
127 // Reset proxy and config settings. | 129 // Reset proxy and config settings. |
128 void Reset(); | 130 void Reset(); |
129 | 131 |
(...skipping 13 matching lines...) Expand all Loading... |
143 // Whether the proxy result represent a proxy bypass. | 145 // Whether the proxy result represent a proxy bypass. |
144 bool did_bypass_proxy_; | 146 bool did_bypass_proxy_; |
145 | 147 |
146 // Whether we used a PAC script for resolving the proxy. | 148 // Whether we used a PAC script for resolving the proxy. |
147 bool did_use_pac_script_; | 149 bool did_use_pac_script_; |
148 }; | 150 }; |
149 | 151 |
150 } // namespace net | 152 } // namespace net |
151 | 153 |
152 #endif // NET_PROXY_PROXY_INFO_H_ | 154 #endif // NET_PROXY_PROXY_INFO_H_ |
OLD | NEW |