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 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_ | 4 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_ |
5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_ | 5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_ |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "media/cast/audio_sender/audio_sender.h" | 9 #include "media/cast/audio_sender/audio_sender.h" |
10 #include "media/cast/cast_config.h" | 10 #include "media/cast/cast_config.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class CastSenderImpl : public CastSender { | 25 class CastSenderImpl : public CastSender { |
26 public: | 26 public: |
27 CastSenderImpl(scoped_refptr<CastThread> cast_thread, | 27 CastSenderImpl(scoped_refptr<CastThread> cast_thread, |
28 const AudioSenderConfig& audio_config, | 28 const AudioSenderConfig& audio_config, |
29 const VideoSenderConfig& video_config, | 29 const VideoSenderConfig& video_config, |
30 VideoEncoderController* const video_encoder_controller, | 30 VideoEncoderController* const video_encoder_controller, |
31 PacketSender* const packet_sender); | 31 PacketSender* const packet_sender); |
32 | 32 |
33 virtual ~CastSenderImpl(); | 33 virtual ~CastSenderImpl(); |
34 | 34 |
35 virtual scoped_refptr<FrameInput> frame_input() OVERRIDE { | 35 virtual scoped_refptr<FrameInput> frame_input() OVERRIDE; |
36 return frame_input_; | 36 virtual scoped_refptr<PacketReceiver> packet_receiver() OVERRIDE; |
37 } | |
38 | |
39 virtual scoped_refptr<PacketReceiver> packet_receiver() OVERRIDE { | |
40 return packet_receiver_; | |
41 } | |
42 | 37 |
43 private: | 38 private: |
44 PacedSender pacer_; | 39 PacedSender pacer_; |
45 AudioSender audio_sender_; | 40 AudioSender audio_sender_; |
46 VideoSender video_sender_; | 41 VideoSender video_sender_; |
47 scoped_refptr<FrameInput> frame_input_; | 42 scoped_refptr<FrameInput> frame_input_; |
48 scoped_refptr<PacketReceiver> packet_receiver_; | 43 scoped_refptr<PacketReceiver> packet_receiver_; |
49 }; | 44 }; |
50 | 45 |
51 } // namespace cast | 46 } // namespace cast |
52 } // namespace media | 47 } // namespace media |
53 | 48 |
54 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ | 49 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_ |
55 | 50 |
OLD | NEW |