diff options
Diffstat (limited to 'net/base/tcp_client_socket.h')
-rw-r--r-- | net/base/tcp_client_socket.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/base/tcp_client_socket.h b/net/base/tcp_client_socket.h index 1ed37a7..e5c8ca9 100644 --- a/net/base/tcp_client_socket.h +++ b/net/base/tcp_client_socket.h @@ -32,13 +32,14 @@ #include <ws2tcpip.h> -#include "base/message_loop.h" +#include "base/object_watcher.h" #include "net/base/address_list.h" #include "net/base/client_socket.h" namespace net { -class TCPClientSocket : public ClientSocket, public MessageLoop::Watcher { +class TCPClientSocket : public ClientSocket, + public base::ObjectWatcher::Delegate { public: // The IP address(es) and port number to connect to. The TCP socket will try // each IP address in the list until it succeeds in establishing a @@ -69,6 +70,8 @@ class TCPClientSocket : public ClientSocket, public MessageLoop::Watcher { OVERLAPPED overlapped_; WSABUF buffer_; + base::ObjectWatcher watcher_; + CompletionCallback* callback_; // Stored outside of the context so we can both lazily construct the context |