Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: net/socket/client_socket_factory.h

Issue 6800009: Attn: Mike Belshe Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 virtual ~ClientSocketFactory() {} 30 virtual ~ClientSocketFactory() {}
31 31
32 // |source| is the NetLog::Source for the entity trying to create the socket, 32 // |source| is the NetLog::Source for the entity trying to create the socket,
33 // if it has one. 33 // if it has one.
34 virtual ClientSocket* CreateTCPClientSocket( 34 virtual ClientSocket* CreateTCPClientSocket(
35 const AddressList& addresses, 35 const AddressList& addresses,
36 NetLog* net_log, 36 NetLog* net_log,
37 const NetLog::Source& source) = 0; 37 const NetLog::Source& source) = 0;
38 38
39 virtual ClientSocket* CreateSCTPClientSocket(
40 const AddressList& addresses,
Mike Belshe 2011/04/06 18:32:53 nit: figure out if we can remove this?
41 NetLog* net_log,
42 const NetLog::Source& source) = 0;
43
39 virtual SSLClientSocket* CreateSSLClientSocket( 44 virtual SSLClientSocket* CreateSSLClientSocket(
40 ClientSocketHandle* transport_socket, 45 ClientSocketHandle* transport_socket,
41 const HostPortPair& host_and_port, 46 const HostPortPair& host_and_port,
42 const SSLConfig& ssl_config, 47 const SSLConfig& ssl_config,
43 SSLHostInfo* ssl_host_info, 48 SSLHostInfo* ssl_host_info,
44 CertVerifier* cert_verifier, 49 CertVerifier* cert_verifier,
45 DnsCertProvenanceChecker* dns_cert_checker) = 0; 50 DnsCertProvenanceChecker* dns_cert_checker) = 0;
46 51
47 // Deprecated function (http://crbug.com/37810) that takes a ClientSocket. 52 // Deprecated function (http://crbug.com/37810) that takes a ClientSocket.
48 virtual SSLClientSocket* CreateSSLClientSocket( 53 virtual SSLClientSocket* CreateSSLClientSocket(
49 ClientSocket* transport_socket, 54 ClientSocket* transport_socket,
50 const HostPortPair& host_and_port, 55 const HostPortPair& host_and_port,
51 const SSLConfig& ssl_config, 56 const SSLConfig& ssl_config,
52 SSLHostInfo* ssl_host_info, 57 SSLHostInfo* ssl_host_info,
53 CertVerifier* cert_verifier); 58 CertVerifier* cert_verifier);
54 59
55 // Clears cache used for SSL session resumption. 60 // Clears cache used for SSL session resumption.
56 virtual void ClearSSLSessionCache() = 0; 61 virtual void ClearSSLSessionCache() = 0;
57 62
58 // Returns the default ClientSocketFactory. 63 // Returns the default ClientSocketFactory.
59 static ClientSocketFactory* GetDefaultFactory(); 64 static ClientSocketFactory* GetDefaultFactory();
60 65
61 // Instructs the default ClientSocketFactory to use the system SSL library. 66 // Instructs the default ClientSocketFactory to use the system SSL library.
62 static void UseSystemSSL(); 67 static void UseSystemSSL();
63 }; 68 };
64 69
65 } // namespace net 70 } // namespace net
66 71
67 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ 72 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698