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

Unified Diff: net/socket/tcp_client_socket_libevent.h

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixing flag name Created 9 years, 6 months 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
Index: net/socket/tcp_client_socket_libevent.h
===================================================================
--- net/socket/tcp_client_socket_libevent.h (revision 88319)
+++ net/socket/tcp_client_socket_libevent.h (working copy)
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/threading/non_thread_safe.h"
+#include "base/time.h"
#include "net/base/address_list.h"
#include "net/base/completion_callback.h"
#include "net/base/net_log.h"
@@ -56,6 +57,9 @@
virtual bool WasEverUsed() const;
virtual bool UsingTCPFastOpen() const;
+ virtual int64 NumBytesRead() const { return num_bytes_read_; }
+ virtual double GetRTTInMs() const { return rtt_ms_; }
+
// Socket methods:
// Multiple outstanding requests are not supported.
// Full duplex mode (reading and writing at the same time) is supported
@@ -197,6 +201,10 @@
// True when TCP FastOpen is in use and we have done the connect.
bool tcp_fastopen_connected_;
+ base::Time connect_start_time_;
+ int64 num_bytes_read_;
+ double rtt_ms_;
+
DISALLOW_COPY_AND_ASSIGN(TCPClientSocketLibevent);
};

Powered by Google App Engine
This is Rietveld 408576698