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 "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
13 #include "net/log/net_log.h" | |
14 #include "net/proxy/proxy_config.h" | 13 #include "net/proxy/proxy_config.h" |
15 #include "net/proxy/proxy_list.h" | 14 #include "net/proxy/proxy_list.h" |
16 #include "net/proxy/proxy_retry_info.h" | 15 #include "net/proxy/proxy_retry_info.h" |
17 #include "net/proxy/proxy_server.h" | 16 #include "net/proxy/proxy_server.h" |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 | 19 |
| 20 class NetLogWithSource; |
| 21 |
21 // This object holds proxy information returned by ResolveProxy. | 22 // This object holds proxy information returned by ResolveProxy. |
22 class NET_EXPORT ProxyInfo { | 23 class NET_EXPORT ProxyInfo { |
23 public: | 24 public: |
24 ProxyInfo(); | 25 ProxyInfo(); |
25 ProxyInfo(const ProxyInfo& other); | 26 ProxyInfo(const ProxyInfo& other); |
26 ~ProxyInfo(); | 27 ~ProxyInfo(); |
27 // Default copy-constructor and assignment operator are OK! | 28 // Default copy-constructor and assignment operator are OK! |
28 | 29 |
29 // Uses the same proxy server as the given |proxy_info|. | 30 // Uses the same proxy server as the given |proxy_info|. |
30 void Use(const ProxyInfo& proxy_info); | 31 void Use(const ProxyInfo& proxy_info); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 198 |
198 // How long it took to resolve the proxy. Times are both null if proxy was | 199 // How long it took to resolve the proxy. Times are both null if proxy was |
199 // determined synchronously without running a PAC. | 200 // determined synchronously without running a PAC. |
200 base::TimeTicks proxy_resolve_start_time_; | 201 base::TimeTicks proxy_resolve_start_time_; |
201 base::TimeTicks proxy_resolve_end_time_; | 202 base::TimeTicks proxy_resolve_end_time_; |
202 }; | 203 }; |
203 | 204 |
204 } // namespace net | 205 } // namespace net |
205 | 206 |
206 #endif // NET_PROXY_PROXY_INFO_H_ | 207 #endif // NET_PROXY_PROXY_INFO_H_ |
OLD | NEW |