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

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

Issue 281453003: Cast: Simplify code path for RTCP sender report (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 7 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 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 #ifndef MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_
6 #define MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 6 #define MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Handles the encoded audio frames to be processed. 33 // Handles the encoded audio frames to be processed.
34 // Frames will be encrypted, packetized and transmitted to the network. 34 // Frames will be encrypted, packetized and transmitted to the network.
35 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame, 35 void InsertCodedAudioFrame(const EncodedAudioFrame* audio_frame,
36 const base::TimeTicks& recorded_time); 36 const base::TimeTicks& recorded_time);
37 37
38 // Retransmision request. 38 // Retransmision request.
39 void ResendPackets( 39 void ResendPackets(
40 const MissingFramesAndPacketsMap& missing_frames_and_packets); 40 const MissingFramesAndPacketsMap& missing_frames_and_packets);
41 41
42 size_t send_packet_count() const { return rtp_sender_.send_packet_count(); }
43 size_t send_octet_count() const { return rtp_sender_.send_octet_count(); }
44 uint32 ssrc() const { return rtp_sender_.ssrc(); }
42 bool initialized() const { return initialized_; } 45 bool initialized() const { return initialized_; }
43 46
44 // Subscribe callback to get RTP Audio stats.
45 void SubscribeAudioRtpStatsCallback(
46 const CastTransportRtpStatistics& callback);
47
48 private: 47 private:
49 friend class LocalRtcpAudioSenderFeedback; 48 friend class LocalRtcpAudioSenderFeedback;
50 49
51 // Caller must allocate the destination |encrypted_frame|. The data member 50 // Caller must allocate the destination |encrypted_frame|. The data member
52 // will be resized to hold the encrypted size. 51 // will be resized to hold the encrypted size.
53 bool EncryptAudioFrame(const EncodedAudioFrame& audio_frame, 52 bool EncryptAudioFrame(const EncodedAudioFrame& audio_frame,
54 EncodedAudioFrame* encrypted_frame); 53 EncodedAudioFrame* encrypted_frame);
55 54
56 RtpSender rtp_sender_; 55 RtpSender rtp_sender_;
57 TransportEncryptionHandler encryptor_; 56 TransportEncryptionHandler encryptor_;
58 bool initialized_; 57 bool initialized_;
59 58
60 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(TransportAudioSender);
61 }; 60 };
62 61
63 } // namespace transport 62 } // namespace transport
64 } // namespace cast 63 } // namespace cast
65 } // namespace media 64 } // namespace media
66 65
67 #endif // MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_ 66 #endif // MEDIA_CAST_TRANSPORT_TRANSPORT_AUDIO_SENDER_H_
OLDNEW
« no previous file with comments | « media/cast/transport/rtp_sender/rtp_sender.cc ('k') | media/cast/transport/transport_audio_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698