Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / chromecast / media / cma / backend / media_pipeline_device_factory.h
blob28da11994d9f25932f2372b2978443a8b82a2e9d
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 {
11 namespace media {
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 {
21 public:
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;
29 private:
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);
38 } // namespace media
39 } // namespace chromecast
41 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_H_