| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_MAC_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
| 7 | 7 |
| 8 #include <Security/Security.h> | 8 #include <Security/Security.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 15 #include "net/base/ssl_client_socket.h" | |
| 16 #include "net/base/ssl_config_service.h" | 15 #include "net/base/ssl_config_service.h" |
| 16 #include "net/socket/ssl_client_socket.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 // An SSL client socket implemented with Secure Transport. | 20 // An SSL client socket implemented with Secure Transport. |
| 21 class SSLClientSocketMac : public SSLClientSocket { | 21 class SSLClientSocketMac : public SSLClientSocket { |
| 22 public: | 22 public: |
| 23 // Takes ownership of the transport_socket, which may already be connected. | 23 // Takes ownership of the transport_socket, which may already be connected. |
| 24 // The given hostname will be compared with the name(s) in the server's | 24 // The given hostname will be compared with the name(s) in the server's |
| 25 // certificate during the SSL handshake. ssl_config specifies the SSL | 25 // certificate during the SSL handshake. ssl_config specifies the SSL |
| 26 // settings. | 26 // settings. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 int recv_buffer_head_slop_; | 98 int recv_buffer_head_slop_; |
| 99 int recv_buffer_tail_slop_; | 99 int recv_buffer_tail_slop_; |
| 100 | 100 |
| 101 // This buffer holds data for Read() operations on the underlying transport | 101 // This buffer holds data for Read() operations on the underlying transport |
| 102 // (ClientSocket::Read()). | 102 // (ClientSocket::Read()). |
| 103 scoped_refptr<IOBuffer> read_io_buf_; | 103 scoped_refptr<IOBuffer> read_io_buf_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace net | 106 } // namespace net |
| 107 | 107 |
| 108 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ | 108 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
| OLD | NEW |