| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 5 #ifndef JINGLE_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| 6 #define JINGLE_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 6 #define JINGLE_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 XmppClientSocketFactory( | 29 XmppClientSocketFactory( |
| 30 net::ClientSocketFactory* client_socket_factory, | 30 net::ClientSocketFactory* client_socket_factory, |
| 31 const net::SSLConfig& ssl_config, | 31 const net::SSLConfig& ssl_config, |
| 32 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 32 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
| 33 bool use_fake_ssl_client_socket); | 33 bool use_fake_ssl_client_socket); |
| 34 | 34 |
| 35 virtual ~XmppClientSocketFactory(); | 35 virtual ~XmppClientSocketFactory(); |
| 36 | 36 |
| 37 // ResolvingClientSocketFactory implementation. | 37 // ResolvingClientSocketFactory implementation. |
| 38 virtual scoped_ptr<net::StreamSocket> CreateTransportClientSocket( | 38 virtual scoped_ptr<net::StreamSocket> CreateTransportClientSocket( |
| 39 const net::HostPortPair& host_and_port) OVERRIDE; | 39 const net::HostPortPair& host_and_port) override; |
| 40 | 40 |
| 41 virtual scoped_ptr<net::SSLClientSocket> CreateSSLClientSocket( | 41 virtual scoped_ptr<net::SSLClientSocket> CreateSSLClientSocket( |
| 42 scoped_ptr<net::ClientSocketHandle> transport_socket, | 42 scoped_ptr<net::ClientSocketHandle> transport_socket, |
| 43 const net::HostPortPair& host_and_port) OVERRIDE; | 43 const net::HostPortPair& host_and_port) override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 net::ClientSocketFactory* const client_socket_factory_; | 46 net::ClientSocketFactory* const client_socket_factory_; |
| 47 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 47 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 48 const net::SSLConfig ssl_config_; | 48 const net::SSLConfig ssl_config_; |
| 49 const bool use_fake_ssl_client_socket_; | 49 const bool use_fake_ssl_client_socket_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); | 51 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace jingle_glue | 54 } // namespace jingle_glue |
| 55 | 55 |
| 56 #endif // JINGLE_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ | 56 #endif // JINGLE_GLUE_XMPP_CLIENT_SOCKET_FACTORY_H_ |
| OLD | NEW |