| Index: net/base/ssl_client_socket_mac.h
|
| ===================================================================
|
| --- net/base/ssl_client_socket_mac.h (revision 14682)
|
| +++ net/base/ssl_client_socket_mac.h (working copy)
|
| @@ -39,8 +39,8 @@
|
| virtual bool IsConnectedAndIdle() const;
|
|
|
| // Socket methods:
|
| - virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
|
| - virtual int Write(const char* buf, int buf_len, CompletionCallback* callback);
|
| + virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
|
| + virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
|
|
|
| private:
|
| void DoCallback(int result);
|
| @@ -70,7 +70,7 @@
|
| CompletionCallback* user_callback_;
|
|
|
| // Used by both Read and Write functions.
|
| - char* user_buf_;
|
| + scoped_refptr<IOBuffer> user_buf_;
|
| int user_buf_len_;
|
|
|
| enum State {
|
| @@ -96,6 +96,10 @@
|
| std::vector<char> recv_buffer_;
|
| int recv_buffer_head_slop_;
|
| int recv_buffer_tail_slop_;
|
| +
|
| + // This buffer holds data for Read() operations on the underlying transport
|
| + // (ClientSocket::Read()).
|
| + scoped_refptr<IOBuffer> read_io_buf_;
|
| };
|
|
|
| } // namespace net
|
|
|