OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 TransportFeedbackAdapter(RtcEventLog* event_log, | 33 TransportFeedbackAdapter(RtcEventLog* event_log, |
34 Clock* clock, | 34 Clock* clock, |
35 BitrateController* bitrate_controller); | 35 BitrateController* bitrate_controller); |
36 virtual ~TransportFeedbackAdapter(); | 36 virtual ~TransportFeedbackAdapter(); |
37 | 37 |
38 void InitBwe(); | 38 void InitBwe(); |
39 // Implements TransportFeedbackObserver. | 39 // Implements TransportFeedbackObserver. |
40 void AddPacket(uint16_t sequence_number, | 40 void AddPacket(uint16_t sequence_number, |
41 size_t length, | 41 size_t length, |
42 int probe_cluster_id) override; | 42 const PacedPacketInfo& pacing_info) override; |
43 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); | 43 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); |
44 | 44 |
45 // TODO(holmer): This method should return DelayBasedBwe::Result so that we | 45 // TODO(holmer): This method should return DelayBasedBwe::Result so that we |
46 // can get rid of the dependency on BitrateController. Requires changes | 46 // can get rid of the dependency on BitrateController. Requires changes |
47 // to the CongestionController interface. | 47 // to the CongestionController interface. |
48 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; | 48 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; |
49 std::vector<PacketInfo> GetTransportFeedbackVector() const override; | 49 std::vector<PacketInfo> GetTransportFeedbackVector() const override; |
50 | 50 |
51 // Implements CallStatsObserver. | 51 // Implements CallStatsObserver. |
52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
(...skipping 18 matching lines...) Expand all Loading... |
71 Clock* const clock_; | 71 Clock* const clock_; |
72 int64_t current_offset_ms_; | 72 int64_t current_offset_ms_; |
73 int64_t last_timestamp_us_; | 73 int64_t last_timestamp_us_; |
74 BitrateController* const bitrate_controller_; | 74 BitrateController* const bitrate_controller_; |
75 std::vector<PacketInfo> last_packet_feedback_vector_; | 75 std::vector<PacketInfo> last_packet_feedback_vector_; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace webrtc | 78 } // namespace webrtc |
79 | 79 |
80 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 80 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |