summaryrefslogtreecommitdiffstats
path: root/net/socket/tcp_client_socket_libevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/tcp_client_socket_libevent.h')
-rw-r--r--net/socket/tcp_client_socket_libevent.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/socket/tcp_client_socket_libevent.h b/net/socket/tcp_client_socket_libevent.h
index 48557d0..f0bed43 100644
--- a/net/socket/tcp_client_socket_libevent.h
+++ b/net/socket/tcp_client_socket_libevent.h
@@ -105,7 +105,6 @@ class TCPClientSocketLibevent : public ClientSocket, NonThreadSafe {
// resetting of current_ai_.
void DoDisconnect();
-
void DoReadCallback(int rv);
void DoWriteCallback(int rv);
void DidCompleteRead();
@@ -120,6 +119,9 @@ class TCPClientSocketLibevent : public ClientSocket, NonThreadSafe {
// Returns the OS error code (or 0 on success).
int CreateSocket(const struct addrinfo* ai);
+ // Helper to add a TCP_CONNECT (end) event to the NetLog.
+ void LogConnectCompletion(int net_error);
+
int socket_;
// The list of addresses we should try in order to establish a connection.
@@ -153,6 +155,9 @@ class TCPClientSocketLibevent : public ClientSocket, NonThreadSafe {
// The next state for the Connect() state machine.
ConnectState next_connect_state_;
+ // The OS error that CONNECT_STATE_CONNECT last completed with.
+ int connect_os_error_;
+
BoundNetLog net_log_;
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);