Index: net/base/ssl_client_socket_win.h |
=================================================================== |
--- net/base/ssl_client_socket_win.h (revision 14682) |
+++ net/base/ssl_client_socket_win.h (working copy) |
@@ -44,8 +44,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); |
@@ -78,9 +78,12 @@ |
CompletionCallback* user_callback_; |
// Used by both Read and Write functions. |
- char* user_buf_; |
+ scoped_refptr<IOBuffer> user_buf_; |
int user_buf_len_; |
+ // Used to Read and Write using transport_. |
+ scoped_refptr<IOBuffer> transport_buf_; |
+ |
enum State { |
STATE_NONE, |
STATE_HANDSHAKE_READ, |