| 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 |
| 11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 11 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
| 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 12 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "webrtc/base/criticalsection.h" | 16 #include "webrtc/base/criticalsection.h" |
| 17 #include "webrtc/base/thread_annotations.h" | 17 #include "webrtc/base/thread_annotations.h" |
| 18 #include "webrtc/base/thread_checker.h" | 18 #include "webrtc/base/thread_checker.h" |
| 19 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" |
| 20 #include "webrtc/system_wrappers/include/clock.h" | 20 #include "webrtc/system_wrappers/include/clock.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 namespace rtcp { | 24 namespace rtcp { |
| 25 class TransportFeedback; | 25 class TransportFeedback; |
| 26 } // namespace rtcp | 26 } // namespace rtcp |
| 27 | 27 |
| 28 class TransportFeedbackAdapter { | 28 class TransportFeedbackAdapter { |
| 29 public: | 29 public: |
| 30 explicit TransportFeedbackAdapter(Clock* clock); | 30 explicit TransportFeedbackAdapter(const Clock* clock); |
| 31 virtual ~TransportFeedbackAdapter(); | 31 virtual ~TransportFeedbackAdapter(); |
| 32 | 32 |
| 33 void AddPacket(uint16_t sequence_number, | 33 void AddPacket(uint16_t sequence_number, |
| 34 size_t length, | 34 size_t length, |
| 35 const PacedPacketInfo& pacing_info); | 35 const PacedPacketInfo& pacing_info); |
| 36 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); | 36 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); |
| 37 | 37 |
| 38 // TODO(holmer): This method should return DelayBasedBwe::Result so that we | 38 // TODO(holmer): This method should return DelayBasedBwe::Result so that we |
| 39 // can get rid of the dependency on BitrateController. Requires changes | 39 // can get rid of the dependency on BitrateController. Requires changes |
| 40 // to the CongestionController interface. | 40 // to the CongestionController interface. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 55 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 55 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
| 56 const Clock* const clock_; | 56 const Clock* const clock_; |
| 57 int64_t current_offset_ms_; | 57 int64_t current_offset_ms_; |
| 58 int64_t last_timestamp_us_; | 58 int64_t last_timestamp_us_; |
| 59 std::vector<PacketFeedback> last_packet_feedback_vector_; | 59 std::vector<PacketFeedback> last_packet_feedback_vector_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace webrtc | 62 } // namespace webrtc |
| 63 | 63 |
| 64 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 64 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
| OLD | NEW |