Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/send_time_history.cc

Issue 1247293002: Add support for transport wide sequence numbers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase, again Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <assert.h> 11 #include <assert.h>
12 12
13 #include "webrtc/modules/bitrate_controller/send_time_history.h" 13 #include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h"
14 14
15 namespace webrtc { 15 namespace webrtc {
16 16
17 SendTimeHistory::SendTimeHistory(int64_t packet_age_limit) 17 SendTimeHistory::SendTimeHistory(int64_t packet_age_limit)
18 : packet_age_limit_(packet_age_limit), oldest_sequence_number_(0) { 18 : packet_age_limit_(packet_age_limit), oldest_sequence_number_(0) {
19 } 19 }
20 20
21 SendTimeHistory::~SendTimeHistory() { 21 SendTimeHistory::~SendTimeHistory() {
22 } 22 }
23 23
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 *timestamp = it->second; 77 *timestamp = it->second;
78 if (remove) { 78 if (remove) {
79 history_.erase(it); 79 history_.erase(it);
80 if (sequence_number == oldest_sequence_number_) 80 if (sequence_number == oldest_sequence_number_)
81 UpdateOldestSequenceNumber(); 81 UpdateOldestSequenceNumber();
82 } 82 }
83 return true; 83 return true;
84 } 84 }
85 85
86 } // namespace webrtc 86 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698