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

Side by Side Diff: webrtc/modules/congestion_controller/include/congestion_controller.h

Issue 1932683002: Remove ViEEncoder::SetNetworkStatus (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@move_pacer
Patch Set: git cl format Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Implements Module. 87 // Implements Module.
88 int64_t TimeUntilNextProcess() override; 88 int64_t TimeUntilNextProcess() override;
89 void Process() override; 89 void Process() override;
90 90
91 private: 91 private:
92 void Init(); 92 void Init();
93 void MaybeTriggerOnNetworkChanged(); 93 void MaybeTriggerOnNetworkChanged();
94 // Updates |send_queue_is_full_|. Returns true if |send_queue_is_full_| 94 // Updates |send_queue_is_full_|. Returns true if |send_queue_is_full_|
95 // has changed. 95 // has changed.
96 bool UpdateSendQueueStatus(bool send_queue_is_full); 96 bool UpdateSendQueueStatus(bool send_queue_is_full);
97 // Returns true if the network is down. Updates |network_state_changed_| and
98 // sets |changed| to true if |network_state_| has changed since last time this
99 // method was called.
100 bool IsNetworkDown(bool* changed);
97 101
98 Clock* const clock_; 102 Clock* const clock_;
99 Observer* const observer_; 103 Observer* const observer_;
100 const std::unique_ptr<PacketRouter> packet_router_; 104 const std::unique_ptr<PacketRouter> packet_router_;
101 const std::unique_ptr<PacedSender> pacer_; 105 const std::unique_ptr<PacedSender> pacer_;
102 const std::unique_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_; 106 const std::unique_ptr<RemoteBitrateEstimator> remote_bitrate_estimator_;
103 const std::unique_ptr<BitrateController> bitrate_controller_; 107 const std::unique_ptr<BitrateController> bitrate_controller_;
104 RemoteEstimatorProxy remote_estimator_proxy_; 108 RemoteEstimatorProxy remote_estimator_proxy_;
105 TransportFeedbackAdapter transport_feedback_adapter_; 109 TransportFeedbackAdapter transport_feedback_adapter_;
106 int min_bitrate_bps_; 110 int min_bitrate_bps_;
107 rtc::CriticalSection critsect_; 111 rtc::CriticalSection critsect_;
108 bool send_queue_is_full_ GUARDED_BY(critsect_); 112 bool send_queue_is_full_ GUARDED_BY(critsect_);
113 NetworkState network_state_ GUARDED_BY(critsect_);
114 bool network_state_changed_ GUARDED_BY(critsect_);
109 115
110 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController); 116 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(CongestionController);
111 }; 117 };
112 118
113 } // namespace webrtc 119 } // namespace webrtc
114 120
115 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_ 121 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_CONGESTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698