| 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_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 | 7 |
| 8 #include <Security/Security.h> | 8 #include <Security/Security.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // ClientSocket methods: | 39 // ClientSocket methods: |
| 40 virtual int Connect(CompletionCallback* callback); | 40 virtual int Connect(CompletionCallback* callback); |
| 41 virtual void Disconnect(); | 41 virtual void Disconnect(); |
| 42 virtual bool IsConnected() const; | 42 virtual bool IsConnected() const; |
| 43 virtual bool IsConnectedAndIdle() const; | 43 virtual bool IsConnectedAndIdle() const; |
| 44 | 44 |
| 45 // Socket methods: | 45 // Socket methods: |
| 46 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 46 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 47 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 47 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 48 virtual bool SetReceiveBufferSize(int32 size); |
| 49 virtual bool SetSendBufferSize(int32 size); |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 void DoCallback(int result); | 52 void DoCallback(int result); |
| 51 void OnIOComplete(int result); | 53 void OnIOComplete(int result); |
| 52 | 54 |
| 53 int DoLoop(int last_io_result); | 55 int DoLoop(int last_io_result); |
| 54 int DoPayloadRead(); | 56 int DoPayloadRead(); |
| 55 int DoPayloadWrite(); | 57 int DoPayloadWrite(); |
| 56 int DoHandshake(); | 58 int DoHandshake(); |
| 57 int DoVerifyCert(); | 59 int DoVerifyCert(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 int recv_buffer_tail_slop_; | 111 int recv_buffer_tail_slop_; |
| 110 | 112 |
| 111 // This buffer holds data for Read() operations on the underlying transport | 113 // This buffer holds data for Read() operations on the underlying transport |
| 112 // (ClientSocket::Read()). | 114 // (ClientSocket::Read()). |
| 113 scoped_refptr<IOBuffer> read_io_buf_; | 115 scoped_refptr<IOBuffer> read_io_buf_; |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace net | 118 } // namespace net |
| 117 | 119 |
| 118 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 120 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
| OLD | NEW |