Chromium Code Reviews| Index: net/base/socket_performance_watcher.h |
| diff --git a/net/base/socket_performance_watcher.h b/net/base/socket_performance_watcher.h |
| index e0e76327ce63541e8d0dc2ba23215d34f953df41..c2bc3d3c474f5ff303a2459de22e39cbf0882ed4 100644 |
| --- a/net/base/socket_performance_watcher.h |
| +++ b/net/base/socket_performance_watcher.h |
| @@ -5,6 +5,8 @@ |
| #ifndef NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_ |
| #define NET_BASE_SOCKET_PERFORMANCE_WATCHER_H_ |
| +#include <stdint.h> |
| + |
| #include "base/macros.h" |
| #include "net/base/net_export.h" |
| #include "net/base/socket_performance_watcher_factory.h" |
| @@ -33,6 +35,18 @@ class NET_EXPORT_PRIVATE SocketPerformanceWatcher { |
| // made, hence no timestamp. |
| void OnUpdatedRTTAvailable(const base::TimeDelta& rtt) const; |
| + // Called when updated packet count at transport layer is available. |
|
bengr
2016/02/09 15:41:03
when -> when an
at -> at the
tbansal1
2016/02/09 17:54:12
Done.
|
| + // |num_packets_lost| is the number of packets lost. |
| + // |num_packets_received_in_order| is the number of packets received in |
| + // order. |num_packets_received_not_in_order| is the number of packets |
| + // received out of order. All the counts are since the last call to the |
| + // OnUpdatedPacketCountAvailable. This method is called immediately after the |
| + // observation is made, hence no timestamp. |
| + void OnUpdatedPacketCountAvailable( |
| + uint64_t num_packets_lost, |
| + uint64_t num_packets_received_in_order, |
| + uint64_t num_packets_received_not_in_order) const; |
| + |
| private: |
| // Transport layer protocol used by the socket that |this| is watching. |
| const SocketPerformanceWatcherFactory::Protocol protocol_; |