OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "net/proxy/proxy_config.h" | 11 #include "net/proxy/proxy_config.h" |
12 #include "net/proxy/proxy_list.h" | 12 #include "net/proxy/proxy_list.h" |
13 #include "net/proxy/proxy_retry_info.h" | 13 #include "net/proxy/proxy_retry_info.h" |
14 #include "net/proxy/proxy_server.h" | 14 #include "net/proxy/proxy_server.h" |
15 | 15 |
16 class GURL; | |
17 | |
18 namespace net { | 16 namespace net { |
19 | 17 |
20 // This object holds proxy information returned by ResolveProxy. | 18 // This object holds proxy information returned by ResolveProxy. |
21 class ProxyInfo { | 19 class ProxyInfo { |
22 public: | 20 public: |
23 ProxyInfo(); | 21 ProxyInfo(); |
24 // Default copy-constructor and assignment operator are OK! | 22 // Default copy-constructor and assignment operator are OK! |
25 | 23 |
26 // Uses the same proxy server as the given |proxy_info|. | 24 // Uses the same proxy server as the given |proxy_info|. |
27 void Use(const ProxyInfo& proxy_info); | 25 void Use(const ProxyInfo& proxy_info); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // try. If proxy_list_ is empty, then there is nothing left to fall back to. | 106 // try. If proxy_list_ is empty, then there is nothing left to fall back to. |
109 ProxyList proxy_list_; | 107 ProxyList proxy_list_; |
110 | 108 |
111 // This value identifies the proxy config used to initialize this object. | 109 // This value identifies the proxy config used to initialize this object. |
112 ProxyConfig::ID config_id_; | 110 ProxyConfig::ID config_id_; |
113 }; | 111 }; |
114 | 112 |
115 } // namespace net | 113 } // namespace net |
116 | 114 |
117 #endif // NET_PROXY_PROXY_INFO_H_ | 115 #endif // NET_PROXY_PROXY_INFO_H_ |
OLD | NEW |