OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This StreamSocket implementation wraps a ClientSocketHandle that is created | 5 // This StreamSocket implementation wraps a ClientSocketHandle that is created |
6 // from the client socket pool after resolving proxies. | 6 // from the client socket pool after resolving proxies. |
7 | 7 |
8 #ifndef JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 8 #ifndef JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" |
14 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
17 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
18 #include "net/base/ssl_config_service.h" | 19 #include "net/base/ssl_config_service.h" |
19 #include "net/proxy/proxy_info.h" | 20 #include "net/proxy/proxy_info.h" |
20 #include "net/proxy/proxy_service.h" | 21 #include "net/proxy/proxy_service.h" |
21 #include "net/socket/stream_socket.h" | 22 #include "net/socket/stream_socket.h" |
22 | 23 |
23 namespace net { | 24 namespace net { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 84 |
84 // The transport socket. | 85 // The transport socket. |
85 scoped_ptr<net::ClientSocketHandle> transport_; | 86 scoped_ptr<net::ClientSocketHandle> transport_; |
86 | 87 |
87 const net::SSLConfig ssl_config_; | 88 const net::SSLConfig ssl_config_; |
88 net::ProxyService::PacRequest* pac_request_; | 89 net::ProxyService::PacRequest* pac_request_; |
89 net::ProxyInfo proxy_info_; | 90 net::ProxyInfo proxy_info_; |
90 net::HostPortPair dest_host_port_pair_; | 91 net::HostPortPair dest_host_port_pair_; |
91 bool tried_direct_connect_fallback_; | 92 bool tried_direct_connect_fallback_; |
92 net::BoundNetLog bound_net_log_; | 93 net::BoundNetLog bound_net_log_; |
93 ScopedRunnableMethodFactory<ProxyResolvingClientSocket> | 94 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
94 scoped_runnable_method_factory_; | |
95 | 95 |
96 // The callback passed to Connect(). | 96 // The callback passed to Connect(). |
97 net::OldCompletionCallback* user_connect_callback_; | 97 net::OldCompletionCallback* user_connect_callback_; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace notifier | 100 } // namespace notifier |
101 | 101 |
102 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 102 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |