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

Unified Diff: net/socket/tcp_client_socket_libevent.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/ssl_client_socket_win.cc ('k') | net/socket/tcp_client_socket_libevent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/tcp_client_socket_libevent.h
diff --git a/net/socket/tcp_client_socket_libevent.h b/net/socket/tcp_client_socket_libevent.h
index bfb576792d9ef9988e593b1734ae9ba1d46d141b..10b1c31994cfa723ccea8f872bae51adc9d9ba7f 100644
--- a/net/socket/tcp_client_socket_libevent.h
+++ b/net/socket/tcp_client_socket_libevent.h
@@ -18,6 +18,8 @@ struct event; // From libevent
namespace net {
+class LoadLog;
+
// A client socket that uses TCP as the transport layer.
class TCPClientSocketLibevent : public ClientSocket {
public:
@@ -29,7 +31,7 @@ class TCPClientSocketLibevent : public ClientSocket {
virtual ~TCPClientSocketLibevent();
// 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;
@@ -85,6 +87,9 @@ class TCPClientSocketLibevent : public ClientSocket {
DISALLOW_COPY_AND_ASSIGN(WriteWatcher);
};
+ // Performs the actual connect(). Returns a net error code.
+ int DoConnect();
+
void DoReadCallback(int rv);
void DoWriteCallback(int rv);
void DidCompleteRead();
@@ -126,6 +131,8 @@ class TCPClientSocketLibevent : public ClientSocket {
// External callback; called when write is complete.
CompletionCallback* write_callback_;
+ scoped_refptr<LoadLog> load_log_;
+
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
};
« no previous file with comments | « net/socket/ssl_client_socket_win.cc ('k') | net/socket/tcp_client_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698