OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
13 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
14 #include "net/base/rand_callback.h" | 14 #include "net/base/rand_callback.h" |
15 #include "net/udp/datagram_socket.h" | 15 #include "net/udp/datagram_socket.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class AddressList; | 19 class AddressList; |
20 class CertVerifier; | |
21 class ClientSocketHandle; | 20 class ClientSocketHandle; |
22 class DatagramClientSocket; | 21 class DatagramClientSocket; |
23 class DnsCertProvenanceChecker; | |
24 class HostPortPair; | 22 class HostPortPair; |
25 class SSLClientSocket; | 23 class SSLClientSocket; |
26 struct SSLClientSocketContext; | 24 struct SSLClientSocketContext; |
27 struct SSLConfig; | 25 struct SSLConfig; |
28 class SSLHostInfo; | 26 class SSLHostInfo; |
29 class StreamSocket; | 27 class StreamSocket; |
30 | 28 |
31 // An interface used to instantiate StreamSocket objects. Used to facilitate | 29 // An interface used to instantiate StreamSocket objects. Used to facilitate |
32 // testing code with mock socket implementations. | 30 // testing code with mock socket implementations. |
33 class NET_EXPORT ClientSocketFactory { | 31 class NET_EXPORT ClientSocketFactory { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Returns the default ClientSocketFactory. | 69 // Returns the default ClientSocketFactory. |
72 static ClientSocketFactory* GetDefaultFactory(); | 70 static ClientSocketFactory* GetDefaultFactory(); |
73 | 71 |
74 // Instructs the default ClientSocketFactory to use the system SSL library. | 72 // Instructs the default ClientSocketFactory to use the system SSL library. |
75 static void UseSystemSSL(); | 73 static void UseSystemSSL(); |
76 }; | 74 }; |
77 | 75 |
78 } // namespace net | 76 } // namespace net |
79 | 77 |
80 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ | 78 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
OLD | NEW |