OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 void OnTransportOverheadChanged(MediaType media, | 120 void OnTransportOverheadChanged(MediaType media, |
121 int transport_overhead_per_packet) override; | 121 int transport_overhead_per_packet) override; |
122 | 122 |
123 void OnNetworkRouteChanged(const std::string& transport_name, | 123 void OnNetworkRouteChanged(const std::string& transport_name, |
124 const rtc::NetworkRoute& network_route) override; | 124 const rtc::NetworkRoute& network_route) override; |
125 | 125 |
126 void OnSentPacket(const rtc::SentPacket& sent_packet) override; | 126 void OnSentPacket(const rtc::SentPacket& sent_packet) override; |
127 | 127 |
128 | 128 |
129 // TODO(minyue): remove this when old OnNetworkChanged is deprecated. See | |
130 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6796 | |
131 using CongestionController::Observer::OnNetworkChanged; | |
132 | |
133 // Implements BitrateObserver. | 129 // Implements BitrateObserver. |
134 void OnNetworkChanged(uint32_t bitrate_bps, | 130 void OnNetworkChanged(uint32_t bitrate_bps, |
135 uint8_t fraction_loss, | 131 uint8_t fraction_loss, |
136 int64_t rtt_ms, | 132 int64_t rtt_ms, |
137 int64_t probing_interval_ms) override; | 133 int64_t probing_interval_ms) override; |
138 | 134 |
139 // Implements BitrateAllocator::LimitObserver. | 135 // Implements BitrateAllocator::LimitObserver. |
140 void OnAllocationLimitsChanged(uint32_t min_send_bitrate_bps, | 136 void OnAllocationLimitsChanged(uint32_t min_send_bitrate_bps, |
141 uint32_t max_padding_bitrate_bps) override; | 137 uint32_t max_padding_bitrate_bps) override; |
142 | 138 |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 | 1202 |
1207 void Call::NotifyBweOfReceivedPacket(const RtpPacketReceived& packet) { | 1203 void Call::NotifyBweOfReceivedPacket(const RtpPacketReceived& packet) { |
1208 RTPHeader header; | 1204 RTPHeader header; |
1209 packet.GetHeader(&header); | 1205 packet.GetHeader(&header); |
1210 congestion_controller_->OnReceivedPacket(packet.arrival_time_ms(), | 1206 congestion_controller_->OnReceivedPacket(packet.arrival_time_ms(), |
1211 packet.payload_size(), header); | 1207 packet.payload_size(), header); |
1212 } | 1208 } |
1213 | 1209 |
1214 } // namespace internal | 1210 } // namespace internal |
1215 } // namespace webrtc | 1211 } // namespace webrtc |
OLD | NEW |