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

Unified Diff: chrome/browser/media/cast_transport_host_filter.cc

Issue 445933002: Cast: Move retransmission to the transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test compile Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/cast_transport_host_filter.cc
diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
index f56bef7ad3c457f3998ea93ef2822bbb767f2a8b..60d7c1626f33683389407af64259fe71cc91179f 100644
--- a/chrome/browser/media/cast_transport_host_filter.cc
+++ b/chrome/browser/media/cast_transport_host_filter.cc
@@ -37,8 +37,10 @@ bool CastTransportHostFilter::OnMessageReceived(const IPC::Message& message) {
OnInsertCodedVideoFrame)
IPC_MESSAGE_HANDLER(CastHostMsg_SendSenderReport,
OnSendSenderReport)
- IPC_MESSAGE_HANDLER(CastHostMsg_ResendPackets,
- OnResendPackets)
+ IPC_MESSAGE_HANDLER(CastHostMsg_ResendFrameForKickstart,
+ OnResendFrameForKickstart)
+ IPC_MESSAGE_HANDLER(CastHostMsg_CancelSendingFrames,
+ OnCancelSendingFrames)
IPC_MESSAGE_UNHANDLED(handled = false);
IPC_END_MESSAGE_MAP();
return handled;
@@ -198,38 +200,48 @@ void CastTransportHostFilter::OnInsertCodedVideoFrame(
}
}
-void CastTransportHostFilter::OnSendSenderReport(
- int32 channel_id,
- uint32 ssrc,
- base::TimeTicks current_time,
- uint32 current_time_as_rtp_timestamp) {
+void CastTransportHostFilter::OnCancelSendingFrames(
+ int32 channel_id, uint32 ssrc,
+ const std::vector<uint32>& frame_ids) {
media::cast::CastTransportSender* sender =
id_map_.Lookup(channel_id);
if (sender) {
- sender->SendSenderReport(ssrc,
- current_time,
- current_time_as_rtp_timestamp);
+ sender->CancelSendingFrames(ssrc, frame_ids);
} else {
DVLOG(1)
- << "CastTransportHostFilter::OnSendSenderReport "
+ << "CastTransportHostFilter::OnCancelSendingFrames "
<< "on non-existing channel";
}
}
-void CastTransportHostFilter::OnResendPackets(
+void CastTransportHostFilter::OnResendFrameForKickstart(
+ int32 channel_id, uint32 ssrc, uint32 frame_id) {
+ media::cast::CastTransportSender* sender =
+ id_map_.Lookup(channel_id);
+ if (sender) {
+ sender->ResendFrameForKickstart(ssrc, frame_id);
+ } else {
+ DVLOG(1)
+ << "CastTransportHostFilter::OnResendFrameForKickstart "
+ << "on non-existing channel";
+ }
+}
+
+void CastTransportHostFilter::OnSendSenderReport(
int32 channel_id,
- bool is_audio,
- const media::cast::MissingFramesAndPacketsMap& missing_packets,
- bool cancel_rtx_if_not_in_list,
- base::TimeDelta dedupe_window) {
+ uint32 ssrc,
+ base::TimeTicks current_time,
+ uint32 current_time_as_rtp_timestamp) {
media::cast::CastTransportSender* sender =
id_map_.Lookup(channel_id);
if (sender) {
- sender->ResendPackets(
- is_audio, missing_packets, cancel_rtx_if_not_in_list, dedupe_window);
+ sender->SendSenderReport(ssrc,
+ current_time,
+ current_time_as_rtp_timestamp);
} else {
DVLOG(1)
- << "CastTransportHostFilter::OnResendPackets on non-existing channel";
+ << "CastTransportHostFilter::OnSendSenderReport "
+ << "on non-existing channel";
}
}
« 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