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_CLIENT_SOCKET_MAC_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <Security/Security.h> | 9 #include <Security/Security.h> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Takes ownership of the |transport_socket|, which must already be connected. | 31 // Takes ownership of the |transport_socket|, which must already be connected. |
32 // The hostname specified in |host_and_port| will be compared with the name(s) | 32 // The hostname specified in |host_and_port| will be compared with the name(s) |
33 // in the server's certificate during the SSL handshake. If SSL client | 33 // in the server's certificate during the SSL handshake. If SSL client |
34 // authentication is requested, the host_and_port field of SSLCertRequestInfo | 34 // authentication is requested, the host_and_port field of SSLCertRequestInfo |
35 // will be populated with |host_and_port|. |ssl_config| specifies | 35 // will be populated with |host_and_port|. |ssl_config| specifies |
36 // the SSL settings. | 36 // the SSL settings. |
37 SSLClientSocketMac(ClientSocketHandle* transport_socket, | 37 SSLClientSocketMac(ClientSocketHandle* transport_socket, |
38 const HostPortPair& host_and_port, | 38 const HostPortPair& host_and_port, |
39 const SSLConfig& ssl_config, | 39 const SSLConfig& ssl_config, |
40 CertVerifier* cert_verifier); | 40 CertVerifier* cert_verifier); |
41 ~SSLClientSocketMac(); | 41 virtual ~SSLClientSocketMac(); |
42 | 42 |
43 // SSLClientSocket methods: | 43 // SSLClientSocket methods: |
44 virtual void GetSSLInfo(SSLInfo* ssl_info); | 44 virtual void GetSSLInfo(SSLInfo* ssl_info); |
45 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 45 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
46 virtual NextProtoStatus GetNextProto(std::string* proto); | 46 virtual NextProtoStatus GetNextProto(std::string* proto); |
47 | 47 |
48 // StreamSocket methods: | 48 // StreamSocket methods: |
49 virtual int Connect(CompletionCallback* callback); | 49 virtual int Connect(CompletionCallback* callback); |
50 virtual void Disconnect(); | 50 virtual void Disconnect(); |
51 virtual bool IsConnected() const; | 51 virtual bool IsConnected() const; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // These are the IOBuffers used for operations on the underlying transport. | 163 // These are the IOBuffers used for operations on the underlying transport. |
164 scoped_refptr<IOBuffer> read_io_buf_; | 164 scoped_refptr<IOBuffer> read_io_buf_; |
165 scoped_refptr<IOBuffer> write_io_buf_; | 165 scoped_refptr<IOBuffer> write_io_buf_; |
166 | 166 |
167 BoundNetLog net_log_; | 167 BoundNetLog net_log_; |
168 }; | 168 }; |
169 | 169 |
170 } // namespace net | 170 } // namespace net |
171 | 171 |
172 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 172 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
OLD | NEW |