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

Unified Diff: webrtc/modules/congestion_controller/include/congestion_controller.h

Issue 2628563003: Propagate packet pacing information to SenTimeHistory (Closed)
Patch Set: . Created 3 years, 11 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: webrtc/modules/congestion_controller/include/congestion_controller.h
diff --git a/webrtc/modules/congestion_controller/include/congestion_controller.h b/webrtc/modules/congestion_controller/include/congestion_controller.h
index 48b9531260ffce8af2152cec439db4bfaa74a6e7..f10fb6e540f55533922acf310a745eb71bd0fd05 100644
--- a/webrtc/modules/congestion_controller/include/congestion_controller.h
+++ b/webrtc/modules/congestion_controller/include/congestion_controller.h
@@ -19,8 +19,9 @@
#include "webrtc/modules/congestion_controller/transport_feedback_adapter.h"
#include "webrtc/modules/include/module.h"
#include "webrtc/modules/include/module_common_types.h"
-#include "webrtc/modules/pacing/packet_router.h"
+#include "webrtc/modules/pacing/bitrate_prober.h"
#include "webrtc/modules/pacing/paced_sender.h"
+#include "webrtc/modules/pacing/packet_router.h"
#include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h"
namespace rtc {
@@ -38,7 +39,9 @@ class RemoteBitrateObserver;
class RtcEventLog;
class TransportFeedbackObserver;
-class CongestionController : public CallStatsObserver, public Module {
+class CongestionController : public CallStatsObserver,
+ public Module,
+ public ProbeClusterCreatedObserver {
public:
// Observer class for bitrate changes announced due to change in bandwidth
// estimate or due to that the send pacer is full. Fraction loss and rtt is
@@ -114,6 +117,11 @@ class CongestionController : public CallStatsObserver, public Module {
int64_t TimeUntilNextProcess() override;
void Process() override;
+ // Implements ProbeClusterCreatedObserver.
+ void OnProbingClusterCreated(int cluster_id,
+ int min_bytes,
+ int min_probes) override;
+
private:
void MaybeTriggerOnNetworkChanged();

Powered by Google App Engine
This is Rietveld 408576698