Chromium Code Reviews| Index: net/socket/tcp_socket_libevent.h |
| diff --git a/net/socket/tcp_socket_libevent.h b/net/socket/tcp_socket_libevent.h |
| index 78b035d2d8d892385aeb8037b30b3c41ea437726..e608942360de2159bd5505f22cb3f4e265a67937 100644 |
| --- a/net/socket/tcp_socket_libevent.h |
| +++ b/net/socket/tcp_socket_libevent.h |
| @@ -9,6 +9,7 @@ |
| #include "base/callback.h" |
| #include "base/compiler_specific.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "base/time/time.h" |
| #include "net/base/address_family.h" |
| #include "net/base/completion_callback.h" |
| #include "net/base/net_export.h" |
| @@ -63,6 +64,10 @@ class NET_EXPORT TCPSocketLibevent { |
| bool SetKeepAlive(bool enable, int delay); |
| bool SetNoDelay(bool no_delay); |
| + // Gets the estimated RTT. Returns false if the RTT is |
| + // unavailable. May also return false when estimated RTT is 0. |
| + bool GetEstimatedRoundTripTime(base::TimeDelta* out_rtt) const; |
|
Jana
2015/07/08 12:33:29
Since 0 is a special case that indicates failure,
Bryan McQuade
2015/07/08 13:26:07
Thanks Jana! I'll defer to Matt on the decision he
|
| + |
| void Close(); |
| // Setter/Getter methods for TCP FastOpen socket option. |