OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 14 matching lines...) Expand all Loading... |
25 // This class represents the congestion control state for receive | 25 // This class represents the congestion control state for receive |
26 // streams. For send side bandwidth estimation, this is simply | 26 // streams. For send side bandwidth estimation, this is simply |
27 // relaying for each received RTP packet back to the sender. While for | 27 // relaying for each received RTP packet back to the sender. While for |
28 // receive side bandwidth estimation, we do the estimation locally and | 28 // receive side bandwidth estimation, we do the estimation locally and |
29 // send our results back to the sender. | 29 // send our results back to the sender. |
30 class ReceiveSideCongestionController : public CallStatsObserver, | 30 class ReceiveSideCongestionController : public CallStatsObserver, |
31 public Module { | 31 public Module { |
32 public: | 32 public: |
33 ReceiveSideCongestionController( | 33 ReceiveSideCongestionController( |
34 const Clock* clock, | 34 const Clock* clock, |
35 RemoteBitrateObserver* remote_bitrate_observer, | |
36 PacketRouter* packet_router); | 35 PacketRouter* packet_router); |
37 | 36 |
38 virtual ~ReceiveSideCongestionController() {} | 37 virtual ~ReceiveSideCongestionController() {} |
39 | 38 |
40 virtual void OnReceivedPacket(int64_t arrival_time_ms, | 39 virtual void OnReceivedPacket(int64_t arrival_time_ms, |
41 size_t payload_size, | 40 size_t payload_size, |
42 const RTPHeader& header); | 41 const RTPHeader& header); |
43 | 42 |
44 // TODO(nisse): Delete these methods, design a more specific interface. | 43 // TODO(nisse): Delete these methods, design a more specific interface. |
45 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator(bool send_side_bwe); | 44 virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator(bool send_side_bwe); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WrappingBitrateEstimator); | 95 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WrappingBitrateEstimator); |
97 }; | 96 }; |
98 | 97 |
99 WrappingBitrateEstimator remote_bitrate_estimator_; | 98 WrappingBitrateEstimator remote_bitrate_estimator_; |
100 RemoteEstimatorProxy remote_estimator_proxy_; | 99 RemoteEstimatorProxy remote_estimator_proxy_; |
101 }; | 100 }; |
102 | 101 |
103 } // namespace webrtc | 102 } // namespace webrtc |
104 | 103 |
105 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_RECEIVE_SIDE_CONGESTION_
CONTROLLER_H_ | 104 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_RECEIVE_SIDE_CONGESTION_
CONTROLLER_H_ |
OLD | NEW |