| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | |
| 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "net/socket/client_socket_factory.h" | |
| 11 | |
| 12 namespace net { | |
| 13 class DnsCertProvenanceChecker; | |
| 14 class HostPortPair; | |
| 15 class SSLHostInfo; | |
| 16 } | |
| 17 | |
| 18 namespace notifier { | |
| 19 | |
| 20 class XmppClientSocketFactory : public net::ClientSocketFactory { | |
| 21 public: | |
| 22 // Does not take ownership of |client_socket_factory|. | |
| 23 XmppClientSocketFactory( | |
| 24 net::ClientSocketFactory* client_socket_factory, | |
| 25 bool use_fake_ssl_client_socket); | |
| 26 | |
| 27 virtual ~XmppClientSocketFactory(); | |
| 28 | |
| 29 // net::ClientSocketFactory implementation. | |
| 30 virtual net::ClientSocket* CreateTransportClientSocket( | |
| 31 const net::AddressList& addresses, net::NetLog* net_log, | |
| 32 const net::NetLog::Source& source); | |
| 33 virtual net::SSLClientSocket* CreateSSLClientSocket( | |
| 34 net::ClientSocketHandle* transport_socket, | |
| 35 const net::HostPortPair& host_and_port, const net::SSLConfig& ssl_config, | |
| 36 net::SSLHostInfo* ssl_host_info, net::CertVerifier* cert_verifier, | |
| 37 net::DnsCertProvenanceChecker* dns_cert_checker); | |
| 38 virtual void ClearSSLSessionCache(); | |
| 39 | |
| 40 private: | |
| 41 net::ClientSocketFactory* const client_socket_factory_; | |
| 42 const bool use_fake_ssl_client_socket_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); | |
| 45 }; | |
| 46 | |
| 47 } // namespace notifier | |
| 48 | |
| 49 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ | |
| OLD | NEW |