OLD | NEW |
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 #ifndef MEDIA_CAST_AUDIO_SENDER_H_ | 5 #ifndef MEDIA_CAST_AUDIO_SENDER_H_ |
6 #define MEDIA_CAST_AUDIO_SENDER_H_ | 6 #define MEDIA_CAST_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 27 matching lines...) Expand all Loading... |
38 return cast_initialization_cb_; | 38 return cast_initialization_cb_; |
39 } | 39 } |
40 | 40 |
41 void InsertAudio(scoped_ptr<AudioBus> audio_bus, | 41 void InsertAudio(scoped_ptr<AudioBus> audio_bus, |
42 const base::TimeTicks& recorded_time); | 42 const base::TimeTicks& recorded_time); |
43 | 43 |
44 // Only called from the main cast thread. | 44 // Only called from the main cast thread. |
45 void IncomingRtcpPacket(scoped_ptr<Packet> packet); | 45 void IncomingRtcpPacket(scoped_ptr<Packet> packet); |
46 | 46 |
47 protected: | 47 protected: |
48 void SendEncodedAudioFrame( | 48 void SendEncodedAudioFrame(scoped_ptr<transport::EncodedFrame> audio_frame); |
49 scoped_ptr<transport::EncodedAudioFrame> audio_frame, | |
50 const base::TimeTicks& recorded_time); | |
51 | 49 |
52 private: | 50 private: |
53 friend class LocalRtcpAudioSenderFeedback; | 51 friend class LocalRtcpAudioSenderFeedback; |
54 | 52 |
55 void ResendPackets( | 53 void ResendPackets( |
56 const MissingFramesAndPacketsMap& missing_frames_and_packets); | 54 const MissingFramesAndPacketsMap& missing_frames_and_packets); |
57 | 55 |
58 void StoreStatistics(const transport::RtcpSenderInfo& sender_info, | 56 void StoreStatistics(const transport::RtcpSenderInfo& sender_info, |
59 base::TimeTicks time_sent, | 57 base::TimeTicks time_sent, |
60 uint32 rtp_timestamp); | 58 uint32 rtp_timestamp); |
(...skipping 15 matching lines...) Expand all Loading... |
76 // NOTE: Weak pointers must be invalidated before all other member variables. | 74 // NOTE: Weak pointers must be invalidated before all other member variables. |
77 base::WeakPtrFactory<AudioSender> weak_factory_; | 75 base::WeakPtrFactory<AudioSender> weak_factory_; |
78 | 76 |
79 DISALLOW_COPY_AND_ASSIGN(AudioSender); | 77 DISALLOW_COPY_AND_ASSIGN(AudioSender); |
80 }; | 78 }; |
81 | 79 |
82 } // namespace cast | 80 } // namespace cast |
83 } // namespace media | 81 } // namespace media |
84 | 82 |
85 #endif // MEDIA_CAST_AUDIO_SENDER_H_ | 83 #endif // MEDIA_CAST_AUDIO_SENDER_H_ |
OLD | NEW |