Index: net/socket/tcp_client_socket_win.h |
diff --git a/net/socket/tcp_client_socket_win.h b/net/socket/tcp_client_socket_win.h |
index 6bc63fc42320d7913486cd5aea4e36ecf00365bd..032f1a651f8329cfb66d5d016200e53ebb5d81d4 100644 |
--- a/net/socket/tcp_client_socket_win.h |
+++ b/net/socket/tcp_client_socket_win.h |
@@ -14,6 +14,8 @@ |
namespace net { |
+class LoadLog; |
+ |
class TCPClientSocketWin : public ClientSocket { |
public: |
// The IP address(es) and port number to connect to. The TCP socket will try |
@@ -24,7 +26,7 @@ class TCPClientSocketWin : public ClientSocket { |
~TCPClientSocketWin(); |
// ClientSocket methods: |
- virtual int Connect(CompletionCallback* callback); |
+ virtual int Connect(CompletionCallback* callback, LoadLog* load_log); |
virtual void Disconnect(); |
virtual bool IsConnected() const; |
virtual bool IsConnectedAndIdle() const; |
@@ -41,6 +43,9 @@ class TCPClientSocketWin : public ClientSocket { |
private: |
class Core; |
+ // Performs the actual connect(). Returns a net error code. |
+ int DoConnect(); |
+ |
int CreateSocket(const struct addrinfo* ai); |
void DoReadCallback(int rv); |
void DoWriteCallback(int rv); |
@@ -72,6 +77,8 @@ class TCPClientSocketWin : public ClientSocket { |
// External callback; called when write is complete. |
CompletionCallback* write_callback_; |
+ scoped_refptr<LoadLog> load_log_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketWin); |
}; |