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

Side by Side Diff: chrome/browser/media/cast_transport_host_filter.cc

Issue 343523005: Cast: Avoid retransmit if we sent the same packet recently (less than RTT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bugfix Created 6 years, 6 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 // 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
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
OLDNEW
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.h ('k') | chrome/browser/media/cast_transport_host_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698