1 // Copyright 2015 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.
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_DEFAULT_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_DEFAULT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chromecast/public/media/media_pipeline_backend.h"
10 #include "chromecast/public/media/media_pipeline_device_params.h"
12 namespace chromecast
{
15 // Factory that instantiates default (stub) media pipeline device elements.
16 class MediaPipelineBackendDefault
: public MediaPipelineBackend
{
18 MediaPipelineBackendDefault(const MediaPipelineDeviceParams
& params
);
19 ~MediaPipelineBackendDefault() override
;
21 // MediaPipelineBackend implementation
22 MediaClockDevice
* GetClock() override
;
23 AudioPipelineDevice
* GetAudio() override
;
24 VideoPipelineDevice
* GetVideo() override
;
27 MediaPipelineDeviceParams params_
;
28 scoped_ptr
<MediaClockDevice
> clock_
;
29 scoped_ptr
<AudioPipelineDevice
> audio_
;
30 scoped_ptr
<VideoPipelineDevice
> video_
;
32 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendDefault
);
36 } // namespace chromecast
38 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_DEFAULT_H_