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

Side by Side Diff: webrtc/modules/congestion_controller/congestion_controller.cc

Issue 2638083002: Attach TransportFeedbackPacketLossTracker to ANA (PLR only) (Closed)
Patch Set: Fix UT Created 3 years, 9 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int64_t CongestionController::TimeUntilNextProcess() { 99 int64_t CongestionController::TimeUntilNextProcess() {
100 return std::min(send_side_cc_.TimeUntilNextProcess(), 100 return std::min(send_side_cc_.TimeUntilNextProcess(),
101 receive_side_cc_.TimeUntilNextProcess()); 101 receive_side_cc_.TimeUntilNextProcess());
102 } 102 }
103 103
104 void CongestionController::Process() { 104 void CongestionController::Process() {
105 send_side_cc_.Process(); 105 send_side_cc_.Process();
106 receive_side_cc_.Process(); 106 receive_side_cc_.Process();
107 } 107 }
108 108
109 void CongestionController::AddPacket(uint16_t sequence_number, 109 void CongestionController::AddPacket(uint32_t ssrc,
110 uint16_t sequence_number,
110 size_t length, 111 size_t length,
111 const PacedPacketInfo& pacing_info) { 112 const PacedPacketInfo& pacing_info) {
112 send_side_cc_.AddPacket(sequence_number, length, pacing_info); 113 send_side_cc_.AddPacket(ssrc, sequence_number, length, pacing_info);
113 } 114 }
114 115
115 void CongestionController::OnTransportFeedback( 116 void CongestionController::OnTransportFeedback(
116 const rtcp::TransportFeedback& feedback) { 117 const rtcp::TransportFeedback& feedback) {
117 send_side_cc_.OnTransportFeedback(feedback); 118 send_side_cc_.OnTransportFeedback(feedback);
118 } 119 }
119 120
120 std::vector<PacketFeedback> CongestionController::GetTransportFeedbackVector() 121 std::vector<PacketFeedback> CongestionController::GetTransportFeedbackVector()
121 const { 122 const {
122 return send_side_cc_.GetTransportFeedbackVector(); 123 return send_side_cc_.GetTransportFeedbackVector();
123 } 124 }
124 125
125 } // namespace webrtc 126 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698