Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: net/socket/tcp_client_socket_win.h

Issue 344026: Add LoadLog to ClientSocket::Connect(). (Closed)
Patch Set: Minor build fixups and fixed mac bug. Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | net/socket/tcp_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698