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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Updates packet info identified by |sequence_number| with |send_time_ms|. | 32 // Updates packet info identified by |sequence_number| with |send_time_ms|. |
33 // Return false if not found. | 33 // Return false if not found. |
34 bool OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); | 34 bool OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); |
35 | 35 |
36 // Look up PacketFeedback for a sent packet, based on the sequence number, and | 36 // Look up PacketFeedback for a sent packet, based on the sequence number, and |
37 // populate all fields except for arrival_time. The packet parameter must | 37 // populate all fields except for arrival_time. The packet parameter must |
38 // thus be non-null and have the sequence_number field set. | 38 // thus be non-null and have the sequence_number field set. |
39 bool GetFeedback(PacketFeedback* packet_feedback, bool remove); | 39 bool GetFeedback(PacketFeedback* packet_feedback, bool remove); |
40 | 40 |
41 size_t GetOutstandingBytes(uint16_t local_net_id, | |
42 uint16_t remote_net_id) const; | |
43 | |
44 private: | 41 private: |
45 const Clock* const clock_; | 42 const Clock* const clock_; |
46 const int64_t packet_age_limit_ms_; | 43 const int64_t packet_age_limit_ms_; |
47 SequenceNumberUnwrapper seq_num_unwrapper_; | 44 SequenceNumberUnwrapper seq_num_unwrapper_; |
48 std::map<int64_t, PacketFeedback> history_; | 45 std::map<int64_t, PacketFeedback> history_; |
49 rtc::Optional<int64_t> latest_acked_seq_num_; | |
50 | 46 |
51 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendTimeHistory); | 47 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendTimeHistory); |
52 }; | 48 }; |
53 | 49 |
54 } // namespace webrtc | 50 } // namespace webrtc |
55 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_SEND_TIME_HISTORY_H_ | 51 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_SEND_TIME_HISTORY_H_ |
OLD | NEW |