| 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_MAC_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ | 6 #define NET_BASE_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> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 ~SSLClientSocketMac(); | 30 ~SSLClientSocketMac(); |
| 31 | 31 |
| 32 // SSLClientSocket methods: | 32 // SSLClientSocket methods: |
| 33 virtual void GetSSLInfo(SSLInfo* ssl_info); | 33 virtual void GetSSLInfo(SSLInfo* ssl_info); |
| 34 | 34 |
| 35 // ClientSocket methods: | 35 // ClientSocket methods: |
| 36 virtual int Connect(CompletionCallback* callback); | 36 virtual int Connect(CompletionCallback* callback); |
| 37 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); | 37 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); |
| 38 virtual void Disconnect(); | 38 virtual void Disconnect(); |
| 39 virtual bool IsConnected() const; | 39 virtual bool IsConnected() const; |
| 40 virtual bool IsConnectedAndIdle() const; |
| 40 | 41 |
| 41 // Socket methods: | 42 // Socket methods: |
| 42 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); | 43 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); |
| 43 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); | 44 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 void DoCallback(int result); | 47 void DoCallback(int result); |
| 47 void OnIOComplete(int result); | 48 void OnIOComplete(int result); |
| 48 | 49 |
| 49 int DoLoop(int last_io_result); | 50 int DoLoop(int last_io_result); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 int pending_send_error_; | 100 int pending_send_error_; |
| 100 std::vector<char> recv_buffer_; | 101 std::vector<char> recv_buffer_; |
| 101 int recv_buffer_head_slop_; | 102 int recv_buffer_head_slop_; |
| 102 int recv_buffer_tail_slop_; | 103 int recv_buffer_tail_slop_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace net | 106 } // namespace net |
| 106 | 107 |
| 107 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ | 108 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ |
| 108 | 109 |
| OLD | NEW |