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_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace chromecast
{
13 class AudioPipelineDevice
;
14 class MediaClockDevice
;
15 class MediaPipelineDeviceParams
;
16 class VideoPipelineDevice
;
18 // Factory for creating platform-specific clock, audio and video devices.
19 // A new factory will be instantiated for each media player instance.
20 class MediaPipelineDeviceFactory
{
22 MediaPipelineDeviceFactory() {}
23 virtual ~MediaPipelineDeviceFactory() {}
25 virtual scoped_ptr
<MediaClockDevice
> CreateMediaClockDevice() = 0;
26 virtual scoped_ptr
<AudioPipelineDevice
> CreateAudioPipelineDevice() = 0;
27 virtual scoped_ptr
<VideoPipelineDevice
> CreateVideoPipelineDevice() = 0;
30 DISALLOW_COPY_AND_ASSIGN(MediaPipelineDeviceFactory
);
33 // Creates the platform-specific pipeline device factory.
34 // TODO(halliwell): move into libcast_media
35 scoped_ptr
<MediaPipelineDeviceFactory
> GetMediaPipelineDeviceFactory(
36 const MediaPipelineDeviceParams
& params
);
39 } // namespace chromecast
41 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_H_