summaryrefslogtreecommitdiffstats
path: root/net/base/tcp_client_socket.h
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 18:38:04 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 18:38:04 +0000
commit3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d (patch)
treed9d8eb5d9bbff19689b9b4243dd2ce846b638e9b /net/base/tcp_client_socket.h
parent2a4e5fbb838517d03c760974ccc6a2ff8939dd08 (diff)
downloadchromium_src-3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d.zip
chromium_src-3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d.tar.gz
chromium_src-3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d.tar.bz2
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
Diffstat (limited to 'net/base/tcp_client_socket.h')
-rw-r--r--net/base/tcp_client_socket.h7
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