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 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | |
14 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 13 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 14 #include "webrtc/rtc_base/checks.h" |
15 #include "webrtc/system_wrappers/include/clock.h" | 15 #include "webrtc/system_wrappers/include/clock.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 SendTimeHistory::SendTimeHistory(const Clock* clock, | 19 SendTimeHistory::SendTimeHistory(const Clock* clock, |
20 int64_t packet_age_limit_ms) | 20 int64_t packet_age_limit_ms) |
21 : clock_(clock), packet_age_limit_ms_(packet_age_limit_ms) {} | 21 : clock_(clock), packet_age_limit_ms_(packet_age_limit_ms) {} |
22 | 22 |
23 SendTimeHistory::~SendTimeHistory() {} | 23 SendTimeHistory::~SendTimeHistory() {} |
24 | 24 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int64_t arrival_time_ms = packet_feedback->arrival_time_ms; | 60 int64_t arrival_time_ms = packet_feedback->arrival_time_ms; |
61 *packet_feedback = it->second; | 61 *packet_feedback = it->second; |
62 packet_feedback->arrival_time_ms = arrival_time_ms; | 62 packet_feedback->arrival_time_ms = arrival_time_ms; |
63 | 63 |
64 if (remove) | 64 if (remove) |
65 history_.erase(it); | 65 history_.erase(it); |
66 return true; | 66 return true; |
67 } | 67 } |
68 | 68 |
69 } // namespace webrtc | 69 } // namespace webrtc |
OLD | NEW |