| 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 aa903fb027332a08185619042ee51d46d8e53e0c..61e74f6b69c82c658261e3bee141ebfbdf1f3336 100644
|
| --- a/webrtc/modules/congestion_controller/include/congestion_controller.h
|
| +++ b/webrtc/modules/congestion_controller/include/congestion_controller.h
|
| @@ -94,6 +94,10 @@ class CongestionController : public CallStatsObserver, public Module {
|
| // Updates |send_queue_is_full_|. Returns true if |send_queue_is_full_|
|
| // has changed.
|
| bool UpdateSendQueueStatus(bool send_queue_is_full);
|
| + // Returns true if the network is down. Updates |network_state_changed_| and
|
| + // sets |changed| to true if |network_state_| has changed since last time this
|
| + // method was called.
|
| + bool IsNetworkDown(bool* changed);
|
|
|
| Clock* const clock_;
|
| Observer* const observer_;
|
| @@ -106,6 +110,8 @@ class CongestionController : public CallStatsObserver, public Module {
|
| int min_bitrate_bps_;
|
| rtc::CriticalSection critsect_;
|
| bool send_queue_is_full_ GUARDED_BY(critsect_);
|
| + NetworkState network_state_ GUARDED_BY(critsect_);
|
| + bool network_state_changed_ GUARDED_BY(critsect_);
|
|
|
| RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController);
|
| };
|
|
|