Index: net/base/socket_performance_watcher_factory.h |
diff --git a/net/base/socket_performance_watcher_factory.h b/net/base/socket_performance_watcher_factory.h |
index cbd607ab3366cbba1e24dea1a6dcaab205dd8320..93d2c63c7d349e3d0af606c47a5438f9c57295e4 100644 |
--- a/net/base/socket_performance_watcher_factory.h |
+++ b/net/base/socket_performance_watcher_factory.h |
@@ -5,6 +5,9 @@ |
#ifndef NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ |
#define NET_BASE_SOCKET_PERFORMANCE_WATCHER_FACTORY_H_ |
+#include <stddef.h> |
+#include <stdint.h> |
+ |
#include "base/macros.h" |
#include "base/memory/scoped_ptr.h" |
#include "net/base/net_export.h" |
@@ -42,6 +45,16 @@ class NET_EXPORT_PRIVATE SocketPerformanceWatcherFactory { |
virtual void OnUpdatedRTTAvailable(const Protocol protocol, |
const base::TimeDelta& rtt) = 0; |
+ // Called when an updated packet count at the transport layer is available. |
+ // |protocol| is the protocol that was used by the watcher. All the counts |
+ // are since the last call to the OnUpdatedPacketCountAvailable. This method |
+ // is called immediately after the observation is made, hence no timestamp. |
+ virtual void OnUpdatedPacketCountAvailable( |
+ Protocol protocol, |
+ size_t packets_lost, |
+ size_t packets_received_in_order, |
+ size_t packets_received_out_of_order) = 0; |
+ |
protected: |
SocketPerformanceWatcherFactory() {} |