OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_SSL_CLIENT_SOCKET_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_H_ |
6 #define NET_BASE_SSL_CLIENT_SOCKET_H_ | 6 #define NET_BASE_SSL_CLIENT_SOCKET_H_ |
7 | 7 |
8 #include "net/base/client_socket.h" | 8 #include "net/base/client_socket.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 class SSLInfo; | 12 class SSLInfo; |
13 | 13 |
14 // A client socket that uses SSL as the transport layer. | 14 // A client socket that uses SSL as the transport layer. |
15 // | 15 // |
16 // NOTE: The SSL handshake occurs within the Connect method after a TCP | 16 // NOTE: The SSL handshake occurs within the Connect method after a TCP |
17 // connection is established. If a SSL error occurs during the handshake, | 17 // connection is established. If a SSL error occurs during the handshake, |
18 // Connect will fail. The consumer may choose to ignore certain SSL errors, | 18 // Connect will fail. |
19 // such as a name mismatch, by calling ReconnectIgnoringLastError. | |
20 // | 19 // |
21 class SSLClientSocket : public ClientSocket { | 20 class SSLClientSocket : public ClientSocket { |
22 public: | 21 public: |
23 // Gets the SSL connection information of the socket. | 22 // Gets the SSL connection information of the socket. |
24 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; | 23 virtual void GetSSLInfo(SSLInfo* ssl_info) = 0; |
25 }; | 24 }; |
26 | 25 |
27 } // namespace net | 26 } // namespace net |
28 | 27 |
29 #endif // NET_BASE_SSL_CLIENT_SOCKET_H_ | 28 #endif // NET_BASE_SSL_CLIENT_SOCKET_H_ |
OLD | NEW |