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 #ifndef JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ | 5 #ifndef JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ |
6 #define JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ | 6 #define JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ |
7 | 7 |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 class ClientSocketHandle; | 10 class ClientSocketHandle; |
11 class HostPortPair; | 11 class HostPortPair; |
12 class NetLog; | 12 class NetLog; |
13 class SSLClientSocket; | 13 class SSLClientSocket; |
14 class StreamSocket; | 14 class StreamSocket; |
15 } | 15 } |
16 | 16 |
17 // TODO(sanjeevr): Move this to net/ | 17 // TODO(sanjeevr): Move this to net/ |
18 | 18 |
19 namespace notifier { | 19 namespace notifier { |
20 | 20 |
21 // Interface for a ClientSocketFactory that creates ClientSockets that can | 21 // Interface for a ClientSocketFactory that creates ClientSockets that can |
22 // resolve host names and tunnel through proxies. | 22 // resolve host names and tunnel through proxies. |
23 class ResolvingClientSocketFactory { | 23 class ResolvingClientSocketFactory { |
24 public: | 24 public: |
25 virtual ~ResolvingClientSocketFactory() { } | 25 virtual ~ResolvingClientSocketFactory() { } |
26 // Method to create a transport socket using a HostPortPair. | 26 // Method to create a transport socket using a HostPortPair. |
27 virtual net::StreamSocket* CreateTransportClientSocket( | 27 virtual net::StreamSocket* CreateTransportClientSocket( |
28 const net::HostPortPair& host_and_port, net::NetLog* net_log) = 0; | 28 const net::HostPortPair& host_and_port) = 0; |
29 | 29 |
30 virtual net::SSLClientSocket* CreateSSLClientSocket( | 30 virtual net::SSLClientSocket* CreateSSLClientSocket( |
31 net::ClientSocketHandle* transport_socket, | 31 net::ClientSocketHandle* transport_socket, |
32 const net::HostPortPair& host_and_port) = 0; | 32 const net::HostPortPair& host_and_port) = 0; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace notifier | 35 } // namespace notifier |
36 | 36 |
37 #endif // JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ | 37 #endif // JINGLE_NOTIFIER_BASE_RESOLVING_CLIENT_SOCKET_FACTORY_H_ |
OLD | NEW |