From 3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d Mon Sep 17 00:00:00 2001 From: "darin@google.com" Date: Mon, 4 Aug 2008 18:38:04 +0000 Subject: was originally reviewed by jar as part of revision 322, but i mistakenly didn't commit it along with that revision git-svn-id: svn://svn.chromium.org/chrome/trunk/src@328 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/tcp_client_socket.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'net/base/tcp_client_socket.h') 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 -#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 -- cgit v1.1