Report errors from ChromiumEnv::GetChildren in Posix.
[chromium-blink-merge.git] / media / cast / cast_sender_impl.h
blob361322ea35a9849f05dd67c9f6fad042b520c04b
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
3 // found in the LICENSE file.
4 #ifndef MEDIA_CAST_CAST_SENDER_IMPL_H_
5 #define MEDIA_CAST_CAST_SENDER_IMPL_H_
7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "media/cast/audio_sender/audio_sender.h"
10 #include "media/cast/cast_config.h"
11 #include "media/cast/cast_environment.h"
12 #include "media/cast/cast_sender.h"
13 #include "media/cast/pacing/paced_sender.h"
14 #include "media/cast/video_sender/video_sender.h"
16 namespace media {
17 namespace cast {
19 class AudioSender;
20 class PacedSender;
21 class VideoSender;
23 // This calls is a pure owner class that group all required sending objects
24 // together such as pacer, packet receiver, frame input, audio and video sender.
25 class CastSenderImpl : public CastSender {
26 public:
27 CastSenderImpl(scoped_refptr<CastEnvironment> cast_environment,
28 const AudioSenderConfig& audio_config,
29 const VideoSenderConfig& video_config,
30 VideoEncoderController* const video_encoder_controller,
31 PacketSender* const packet_sender);
33 virtual ~CastSenderImpl();
35 virtual scoped_refptr<FrameInput> frame_input() OVERRIDE;
36 virtual scoped_refptr<PacketReceiver> packet_receiver() OVERRIDE;
38 private:
39 PacedSender pacer_;
40 AudioSender audio_sender_;
41 VideoSender video_sender_;
42 scoped_refptr<FrameInput> frame_input_;
43 scoped_refptr<PacketReceiver> packet_receiver_;
46 } // namespace cast
47 } // namespace media
49 #endif // MEDIA_CAST_CAST_SENDER_IMPL_H_