1 // Copyright 2014 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_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace chromecast
{
13 class AudioPipelineDevice
;
14 class MediaClockDevice
;
15 class MediaPipelineDeviceParams
;
16 class VideoPipelineDevice
;
18 // MediaPipelineDevice is the owner of the underlying audio/video/clock
20 class MediaPipelineDevice
{
22 MediaPipelineDevice();
23 virtual ~MediaPipelineDevice();
25 virtual AudioPipelineDevice
* GetAudioPipelineDevice() const = 0;
27 virtual VideoPipelineDevice
* GetVideoPipelineDevice() const = 0;
29 virtual MediaClockDevice
* GetMediaClockDevice() const = 0;
32 DISALLOW_COPY_AND_ASSIGN(MediaPipelineDevice
);
35 // Factory to create a MediaPipelineDevice.
36 scoped_ptr
<MediaPipelineDevice
> CreateMediaPipelineDevice(
37 const MediaPipelineDeviceParams
& params
);
40 } // namespace chromecast
42 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_H_