• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "net/socket/client_socket_factory.h"
6 
7 #include "net/socket/ssl_client_socket_nss.h"
8 
9 // This file is only used on platforms where NSS is not the system SSL
10 // library.  When compiled, this file is the only object module that pulls
11 // in the dependency on NSPR and NSS.  This allows us to control which
12 // projects depend on NSPR and NSS on those platforms.
13 
14 namespace net {
15 
SSLClientSocketNSSFactory(ClientSocket * transport_socket,const std::string & hostname,const SSLConfig & ssl_config)16 SSLClientSocket* SSLClientSocketNSSFactory(
17     ClientSocket* transport_socket,
18     const std::string& hostname,
19     const SSLConfig& ssl_config) {
20   return new SSLClientSocketNSS(transport_socket, hostname, ssl_config);
21 }
22 
23 }  // namespace net
24