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

Unified Diff: media/cast/net/cast_transport_sender.h

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
« no previous file with comments | « chrome/renderer/media/cast_transport_sender_ipc.cc ('k') | media/cast/net/cast_transport_sender_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/cast_transport_sender.h
diff --git a/media/cast/net/cast_transport_sender.h b/media/cast/net/cast_transport_sender.h
index 31166f549d4822cd6b56dc3c840376011ef9d7de..9c75d12275372c5041f1ffe2efd8663daf3b9c99 100644
--- a/media/cast/net/cast_transport_sender.h
+++ b/media/cast/net/cast_transport_sender.h
@@ -85,19 +85,15 @@ class CastTransportSender : public base::NonThreadSafe {
base::TimeTicks current_time,
uint32 current_time_as_rtp_timestamp) = 0;
- // Retransmission request.
- // |missing_packets| includes the list of frames and packets in each
- // frame to be re-transmitted.
- // If |cancel_rtx_if_not_in_list| is used as an optimization to cancel
- // pending re-transmission requests of packets not listed in
- // |missing_packets|. If the requested packet(s) were sent recently
- // (how long is specified by |dedupe_window|) then this re-transmit
- // will be ignored.
- virtual void ResendPackets(
- bool is_audio,
- const MissingFramesAndPacketsMap& missing_packets,
- bool cancel_rtx_if_not_in_list,
- base::TimeDelta dedupe_window) = 0;
+ // Cancels sending packets for the frames in the set.
+ // |ssrc| is the SSRC for the stream.
+ // |frame_ids| contains the IDs of the frames that will be cancelled.
+ virtual void CancelSendingFrames(uint32 ssrc,
+ const std::vector<uint32>& frame_ids) = 0;
+
+ // Resends a frame or part of a frame to kickstart. This is used when the
+ // stream appears to be stalled.
+ virtual void ResendFrameForKickstart(uint32 ssrc, uint32 frame_id) = 0;
// Returns a callback for receiving packets for testing purposes.
virtual PacketReceiverCallback PacketReceiverForTesting();
« no previous file with comments | « chrome/renderer/media/cast_transport_sender_ipc.cc ('k') | media/cast/net/cast_transport_sender_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698