Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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, |
|
terelius
2017/03/22 16:03:32
If we're changing this method signature, could we
elad.alon_webrtc.org
2017/03/22 16:05:16
+1, though I'd prefer doing it in a separate CL. W
| |
| 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 |
| OLD | NEW |