Index: webrtc/modules/congestion_controller/congestion_controller.cc |
diff --git a/webrtc/modules/congestion_controller/congestion_controller.cc b/webrtc/modules/congestion_controller/congestion_controller.cc |
index c836f40f5e7187f242e828dc4b64c4e1e7ca3652..d42ad4acc513b702499ff5087a4cbba13712fbcf 100644 |
--- a/webrtc/modules/congestion_controller/congestion_controller.cc |
+++ b/webrtc/modules/congestion_controller/congestion_controller.cc |
@@ -153,37 +153,17 @@ class WrappingBitrateEstimator : public RemoteBitrateEstimator { |
CongestionController::CongestionController( |
Clock* clock, |
- BitrateObserver* bitrate_observer, |
- RemoteBitrateObserver* remote_bitrate_observer) |
- : clock_(clock), |
- observer_(nullptr), |
- packet_router_(new PacketRouter()), |
- pacer_(new PacedSender(clock_, packet_router_.get())), |
- remote_bitrate_estimator_( |
- new WrappingBitrateEstimator(remote_bitrate_observer, clock_)), |
- bitrate_controller_( |
- BitrateController::CreateBitrateController(clock_, bitrate_observer)), |
- remote_estimator_proxy_(clock_, packet_router_.get()), |
- transport_feedback_adapter_(bitrate_controller_.get(), clock_), |
- min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps), |
- last_reported_bitrate_bps_(0), |
- last_reported_fraction_loss_(0), |
- last_reported_rtt_(0), |
- network_state_(kNetworkUp) { |
- Init(); |
-} |
- |
-CongestionController::CongestionController( |
- Clock* clock, |
Observer* observer, |
- RemoteBitrateObserver* remote_bitrate_observer) |
+ RemoteBitrateObserver* remote_bitrate_observer, |
+ RtcEventLog* event_log) |
: clock_(clock), |
observer_(observer), |
packet_router_(new PacketRouter()), |
pacer_(new PacedSender(clock_, packet_router_.get())), |
remote_bitrate_estimator_( |
new WrappingBitrateEstimator(remote_bitrate_observer, clock_)), |
- bitrate_controller_(BitrateController::CreateBitrateController(clock_)), |
+ bitrate_controller_( |
+ BitrateController::CreateBitrateController(clock_, event_log)), |
remote_estimator_proxy_(clock_, packet_router_.get()), |
transport_feedback_adapter_(bitrate_controller_.get(), clock_), |
min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps), |
@@ -198,6 +178,7 @@ CongestionController::CongestionController( |
Clock* clock, |
Observer* observer, |
RemoteBitrateObserver* remote_bitrate_observer, |
+ RtcEventLog* event_log, |
std::unique_ptr<PacketRouter> packet_router, |
std::unique_ptr<PacedSender> pacer) |
: clock_(clock), |
@@ -208,7 +189,8 @@ CongestionController::CongestionController( |
new WrappingBitrateEstimator(remote_bitrate_observer, clock_)), |
// Constructed last as this object calls the provided callback on |
// construction. |
- bitrate_controller_(BitrateController::CreateBitrateController(clock_)), |
+ bitrate_controller_( |
+ BitrateController::CreateBitrateController(clock_, event_log)), |
remote_estimator_proxy_(clock_, packet_router_.get()), |
transport_feedback_adapter_(bitrate_controller_.get(), clock_), |
min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps), |