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_LIST_H_ | 5 #ifndef NET_PROXY_PROXY_LIST_H_ |
6 #define NET_PROXY_PROXY_LIST_H_ | 6 #define NET_PROXY_PROXY_LIST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
14 #include "net/log/net_log.h" | |
15 #include "net/proxy/proxy_retry_info.h" | 15 #include "net/proxy/proxy_retry_info.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class ListValue; | 18 class ListValue; |
19 class TimeDelta; | 19 class TimeDelta; |
20 } | 20 } |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 class ProxyServer; | 24 class ProxyServer; |
| 25 class NetLogWithSource; |
25 | 26 |
26 // This class is used to hold a list of proxies returned by GetProxyForUrl or | 27 // This class is used to hold a list of proxies returned by GetProxyForUrl or |
27 // manually configured. It handles proxy fallback if multiple servers are | 28 // manually configured. It handles proxy fallback if multiple servers are |
28 // specified. | 29 // specified. |
29 class NET_EXPORT_PRIVATE ProxyList { | 30 class NET_EXPORT_PRIVATE ProxyList { |
30 public: | 31 public: |
31 ProxyList(); | 32 ProxyList(); |
32 ProxyList(const ProxyList& other); | 33 ProxyList(const ProxyList& other); |
33 ~ProxyList(); | 34 ~ProxyList(); |
34 | 35 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 int net_error, | 125 int net_error, |
125 const NetLogWithSource& net_log) const; | 126 const NetLogWithSource& net_log) const; |
126 | 127 |
127 // List of proxies. | 128 // List of proxies. |
128 std::vector<ProxyServer> proxies_; | 129 std::vector<ProxyServer> proxies_; |
129 }; | 130 }; |
130 | 131 |
131 } // namespace net | 132 } // namespace net |
132 | 133 |
133 #endif // NET_PROXY_PROXY_LIST_H_ | 134 #endif // NET_PROXY_PROXY_LIST_H_ |
OLD | NEW |