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

Unified Diff: net/base/socket_performance_watcher_factory.h

Issue 1672513002: Expose packet loss counts from QUIC to NetworkQualityEstimator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed bengr comments, Rebased Created 4 years, 10 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/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() {}

Powered by Google App Engine
This is Rietveld 408576698