| OLD | NEW |
| 1 // Copyright (c) 2010 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 JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 5 #ifndef JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/socket/client_socket_factory.h" | 10 #include "net/socket/client_socket_factory.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 bool use_fake_ssl_client_socket); | 24 bool use_fake_ssl_client_socket); |
| 25 | 25 |
| 26 virtual ~XmppClientSocketFactory(); | 26 virtual ~XmppClientSocketFactory(); |
| 27 | 27 |
| 28 // net::ClientSocketFactory implementation. | 28 // net::ClientSocketFactory implementation. |
| 29 virtual net::ClientSocket* CreateTCPClientSocket( | 29 virtual net::ClientSocket* CreateTCPClientSocket( |
| 30 const net::AddressList& addresses, net::NetLog* net_log, | 30 const net::AddressList& addresses, net::NetLog* net_log, |
| 31 const net::NetLog::Source& source); | 31 const net::NetLog::Source& source); |
| 32 virtual net::SSLClientSocket* CreateSSLClientSocket( | 32 virtual net::SSLClientSocket* CreateSSLClientSocket( |
| 33 net::ClientSocketHandle* transport_socket, const std::string& hostname, | 33 net::ClientSocketHandle* transport_socket, const std::string& hostname, |
| 34 const net::SSLConfig& ssl_config, net::SSLHostInfo* ssl_host_info, | 34 uint16 port, const net::SSLConfig& ssl_config, |
| 35 net::DnsRRResolver* dnsrr_resolver); | 35 net::SSLHostInfo* ssl_host_info, net::DnsRRResolver* dnsrr_resolver); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 net::ClientSocketFactory* const client_socket_factory_; | 38 net::ClientSocketFactory* const client_socket_factory_; |
| 39 const bool use_fake_ssl_client_socket_; | 39 const bool use_fake_ssl_client_socket_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); | 41 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace notifier | 44 } // namespace notifier |
| 45 | 45 |
| 46 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 46 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| OLD | NEW |