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_SSL_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_H_ |
6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_SSL_SERVER_SOCKET_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 #include "net/socket/stream_socket.h" | 11 #include "net/socket/stream_socket.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class StringPiece; | 14 class StringPiece; |
15 } // namespace base | 15 } // namespace base |
16 | 16 |
17 namespace crypto { | 17 namespace crypto { |
18 class RSAPrivateKey; | 18 class RSAPrivateKey; |
19 } // namespace crypto | 19 } // namespace crypto |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class IOBuffer; | |
24 struct SSLConfig; | 23 struct SSLConfig; |
25 class X509Certificate; | 24 class X509Certificate; |
26 | 25 |
27 class SSLServerSocket : public StreamSocket { | 26 class SSLServerSocket : public StreamSocket { |
28 public: | 27 public: |
29 virtual ~SSLServerSocket() {} | 28 virtual ~SSLServerSocket() {} |
30 | 29 |
31 // Perform the SSL server handshake, and notify the supplied callback | 30 // Perform the SSL server handshake, and notify the supplied callback |
32 // if the process completes asynchronously. If Disconnect is called before | 31 // if the process completes asynchronously. If Disconnect is called before |
33 // completion then the callback will be silently, as for other StreamSocket | 32 // completion then the callback will be silently, as for other StreamSocket |
(...skipping 22 matching lines...) Expand all Loading... |
56 // returned socket. | 55 // returned socket. |
57 NET_EXPORT SSLServerSocket* CreateSSLServerSocket( | 56 NET_EXPORT SSLServerSocket* CreateSSLServerSocket( |
58 StreamSocket* socket, | 57 StreamSocket* socket, |
59 X509Certificate* certificate, | 58 X509Certificate* certificate, |
60 crypto::RSAPrivateKey* key, | 59 crypto::RSAPrivateKey* key, |
61 const SSLConfig& ssl_config); | 60 const SSLConfig& ssl_config); |
62 | 61 |
63 } // namespace net | 62 } // namespace net |
64 | 63 |
65 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_ | 64 #endif // NET_SOCKET_SSL_SERVER_SOCKET_H_ |
OLD | NEW |