Refactored not to expose raw pointers on ProxyList class.
[chromium-blink-merge.git] / chromecast / media / cma / backend / media_pipeline_backend_default.h
blob7a9a602d68577e55b60739b1e708e336cd9818c2
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 {
13 namespace media {
15 // Factory that instantiates default (stub) media pipeline device elements.
16 class MediaPipelineBackendDefault : public MediaPipelineBackend {
17 public:
18 MediaPipelineBackendDefault(const MediaPipelineDeviceParams& params);
19 ~MediaPipelineBackendDefault() override;
21 // MediaPipelineBackend implementation
22 MediaClockDevice* GetClock() override;
23 AudioPipelineDevice* GetAudio() override;
24 VideoPipelineDevice* GetVideo() override;
26 private:
27 MediaPipelineDeviceParams params_;
28 scoped_ptr<MediaClockDevice> clock_;
29 scoped_ptr<AudioPipelineDevice> audio_;
30 scoped_ptr<VideoPipelineDevice> video_;
32 DISALLOW_COPY_AND_ASSIGN(MediaPipelineBackendDefault);
35 } // namespace media
36 } // namespace chromecast
38 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_DEFAULT_H_