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

Side by Side Diff: media/cast/transport/rtp_sender/rtp_sender.h

Issue 322953004: Cast: Don't cancel re-transmission for some cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged again 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file contains the interface to the cast RTP sender. 5 // This file contains the interface to the cast RTP sender.
6 6
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Initialize audio stack. Audio must be initialized prior to sending encoded 43 // Initialize audio stack. Audio must be initialized prior to sending encoded
44 // audio frames. Returns false if configuration is invalid. 44 // audio frames. Returns false if configuration is invalid.
45 bool InitializeAudio(const CastTransportAudioConfig& config); 45 bool InitializeAudio(const CastTransportAudioConfig& config);
46 46
47 // Initialize video stack. Video must be initialized prior to sending encoded 47 // Initialize video stack. Video must be initialized prior to sending encoded
48 // video frames. Returns false if configuration is invalid. 48 // video frames. Returns false if configuration is invalid.
49 bool InitializeVideo(const CastTransportVideoConfig& config); 49 bool InitializeVideo(const CastTransportVideoConfig& config);
50 50
51 void SendFrame(const EncodedFrame& frame); 51 void SendFrame(const EncodedFrame& frame);
52 52
53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets); 53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets,
54 bool cancel_rtx_if_not_in_list);
54 55
55 size_t send_packet_count() const { 56 size_t send_packet_count() const {
56 return packetizer_ ? packetizer_->send_packet_count() : 0; 57 return packetizer_ ? packetizer_->send_packet_count() : 0;
57 } 58 }
58 size_t send_octet_count() const { 59 size_t send_octet_count() const {
59 return packetizer_ ? packetizer_->send_octet_count() : 0; 60 return packetizer_ ? packetizer_->send_octet_count() : 0;
60 } 61 }
61 uint32 ssrc() const { return config_.ssrc; } 62 uint32 ssrc() const { return config_.ssrc; }
62 63
63 private: 64 private:
(...skipping 10 matching lines...) Expand all
74 base::WeakPtrFactory<RtpSender> weak_factory_; 75 base::WeakPtrFactory<RtpSender> weak_factory_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(RtpSender); 77 DISALLOW_COPY_AND_ASSIGN(RtpSender);
77 }; 78 };
78 79
79 } // namespace transport 80 } // namespace transport
80 } // namespace cast 81 } // namespace cast
81 } // namespace media 82 } // namespace media
82 83
83 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ 84 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/cast_transport_sender_impl.cc ('k') | media/cast/transport/rtp_sender/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698