| Index: webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| diff --git a/webrtc/modules/congestion_controller/delay_based_bwe.cc b/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| index af27505268b736a9bf81c5ab912acf477ded65c6..6d8c32f66911287ab406db4782e3a29eca2ca71e 100644
|
| --- a/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| +++ b/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| @@ -137,7 +137,8 @@ DelayBasedBwe::DelayBasedBwe(Clock* clock)
|
| receiver_incoming_bitrate_(),
|
| last_update_ms_(-1),
|
| last_seen_packet_ms_(-1),
|
| - uma_recorded_(false) {
|
| + uma_recorded_(false),
|
| + probing_interval_estimator_(&rate_control_) {
|
| network_thread_.DetachFromThread();
|
| }
|
|
|
| @@ -269,4 +270,13 @@ void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) {
|
| // be called from the network thread in the future.
|
| rate_control_.SetMinBitrate(min_bitrate_bps);
|
| }
|
| +
|
| +int64_t DelayBasedBwe::GetProbingIntervalMs() const {
|
| + rtc::Optional<int64_t> probing_interval_ms =
|
| + probing_interval_estimator_.GetIntervalMs();
|
| + if (!probing_interval_ms)
|
| + return 0;
|
| +
|
| + return *probing_interval_ms;
|
| +}
|
| } // namespace webrtc
|
|
|