| 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 #include "net/socket/client_socket_factory.h" | 5 #include "net/socket/client_socket_factory.h" | 
| 6 | 6 | 
| 7 #include "net/socket/ssl_client_socket_nss.h" | 7 #include "net/socket/ssl_client_socket_nss.h" | 
| 8 #include "net/socket/ssl_host_info.h" | 8 #include "net/socket/ssl_host_info.h" | 
| 9 | 9 | 
| 10 // This file is only used on platforms where NSS is not the system SSL | 10 // This file is only used on platforms where NSS is not the system SSL | 
| 11 // library.  When compiled, this file is the only object module that pulls | 11 // library.  When compiled, this file is the only object module that pulls | 
| 12 // in the dependency on NSPR and NSS.  This allows us to control which | 12 // in the dependency on NSPR and NSS.  This allows us to control which | 
| 13 // projects depend on NSPR and NSS on those platforms. | 13 // projects depend on NSPR and NSS on those platforms. | 
| 14 | 14 | 
| 15 namespace net { | 15 namespace net { | 
| 16 | 16 | 
| 17 SSLClientSocket* SSLClientSocketNSSFactory( | 17 SSLClientSocket* SSLClientSocketNSSFactory( | 
| 18     ClientSocketHandle* transport_socket, | 18     ClientSocketHandle* transport_socket, | 
| 19     const std::string& hostname, | 19     const HostPortPair& host_and_port, | 
| 20     const SSLConfig& ssl_config, | 20     const SSLConfig& ssl_config, | 
| 21     SSLHostInfo* ssl_host_info, | 21     SSLHostInfo* ssl_host_info, | 
| 22     DnsRRResolver* dnsrr_resolver) { | 22     DnsRRResolver* dnsrr_resolver) { | 
| 23   scoped_ptr<SSLHostInfo> shi(ssl_host_info); | 23   scoped_ptr<SSLHostInfo> shi(ssl_host_info); | 
| 24   return new SSLClientSocketNSS(transport_socket, hostname, ssl_config, | 24   return new SSLClientSocketNSS(transport_socket, host_and_port, ssl_config, | 
| 25                                 shi.release(), dnsrr_resolver); | 25                                 shi.release(), dnsrr_resolver); | 
| 26 } | 26 } | 
| 27 | 27 | 
| 28 }  // namespace net | 28 }  // namespace net | 
| OLD | NEW | 
|---|