OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/media/cast_transport_host_filter.h" | 5 #include "chrome/browser/media/cast_transport_host_filter.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/net/chrome_net_log.h" | 8 #include "chrome/browser/net/chrome_net_log.h" |
9 #include "media/cast/transport/cast_transport_sender.h" | 9 #include "media/cast/transport/cast_transport_sender.h" |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 DVLOG(1) | 172 DVLOG(1) |
173 << "CastTransportHostFilter::OnSendRtcpFromRtpSender " | 173 << "CastTransportHostFilter::OnSendRtcpFromRtpSender " |
174 << "on non-existing channel"; | 174 << "on non-existing channel"; |
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 void CastTransportHostFilter::OnResendPackets( | 178 void CastTransportHostFilter::OnResendPackets( |
179 int32 channel_id, | 179 int32 channel_id, |
180 bool is_audio, | 180 bool is_audio, |
181 const media::cast::MissingFramesAndPacketsMap& missing_packets, | 181 const media::cast::MissingFramesAndPacketsMap& missing_packets, |
182 bool cancel_rtx_if_not_in_list) { | 182 bool cancel_rtx_if_not_in_list, |
| 183 base::TimeDelta dedupe_window) { |
183 media::cast::transport::CastTransportSender* sender = | 184 media::cast::transport::CastTransportSender* sender = |
184 id_map_.Lookup(channel_id); | 185 id_map_.Lookup(channel_id); |
185 if (sender) { | 186 if (sender) { |
186 sender->ResendPackets(is_audio, missing_packets, cancel_rtx_if_not_in_list); | 187 sender->ResendPackets( |
| 188 is_audio, missing_packets, cancel_rtx_if_not_in_list, dedupe_window); |
187 } else { | 189 } else { |
188 DVLOG(1) | 190 DVLOG(1) |
189 << "CastTransportHostFilter::OnResendPackets on non-existing channel"; | 191 << "CastTransportHostFilter::OnResendPackets on non-existing channel"; |
190 } | 192 } |
191 } | 193 } |
192 | 194 |
193 } // namespace cast | 195 } // namespace cast |
OLD | NEW |