summaryrefslogtreecommitdiffstats
path: root/net/base/tcp_client_socket_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/tcp_client_socket_win.h')
-rw-r--r--net/base/tcp_client_socket_win.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/base/tcp_client_socket_win.h b/net/base/tcp_client_socket_win.h
index 63f2b93..0199bfc 100644
--- a/net/base/tcp_client_socket_win.h
+++ b/net/base/tcp_client_socket_win.h
@@ -32,8 +32,8 @@ class TCPClientSocketWin : public ClientSocket {
// Socket methods:
// Multiple outstanding requests are not supported.
// Full duplex mode (reading and writing at the same time) is supported
- 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:
class ReadDelegate : public base::ObjectWatcher::Delegate {
@@ -89,6 +89,8 @@ class TCPClientSocketWin : public ClientSocket {
// The buffers used in Read() and Write().
WSABUF read_buffer_;
WSABUF write_buffer_;
+ scoped_refptr<IOBuffer> read_iobuffer_;
+ scoped_refptr<IOBuffer> write_iobuffer_;
// |reader_| handles the signals from |read_watcher_|.
ReadDelegate reader_;