Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: chromecast/media/cma/backend/media_pipeline_device_fake.h

Issue 622853002: Chromecast: adds interfaces for hardware layer of CMA pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-decrypt-context
Patch Set: damien comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/backend/media_pipeline_device_fake.h
diff --git a/chromecast/media/cma/backend/media_pipeline_device_fake.h b/chromecast/media/cma/backend/media_pipeline_device_fake.h
new file mode 100644
index 0000000000000000000000000000000000000000..0534515bf9f3bb689ea73358f5984c888c94457b
--- /dev/null
+++ b/chromecast/media/cma/backend/media_pipeline_device_fake.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FAKE_H_
+#define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FAKE_H_
+
+#include "chromecast/media/cma/backend/media_pipeline_device.h"
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace chromecast {
+namespace media {
+class AudioPipelineDeviceFake;
+class MediaClockDeviceFake;
+class VideoPipelineDeviceFake;
+
+class MediaPipelineDeviceFake : public MediaPipelineDevice {
+ public:
+ MediaPipelineDeviceFake();
+ virtual ~MediaPipelineDeviceFake();
+
+ // MediaPipelineDevice implementation.
+ virtual AudioPipelineDevice* GetAudioPipelineDevice() const override;
+ virtual VideoPipelineDevice* GetVideoPipelineDevice() const override;
+ virtual MediaClockDevice* GetMediaClockDevice() const override;
+
+ private:
+ scoped_ptr<MediaClockDeviceFake> media_clock_device_;
+ scoped_ptr<AudioPipelineDeviceFake> audio_pipeline_device_;
+ scoped_ptr<VideoPipelineDeviceFake> video_pipeline_device_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaPipelineDeviceFake);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_H_
« no previous file with comments | « chromecast/media/cma/backend/media_pipeline_device.cc ('k') | chromecast/media/cma/backend/media_pipeline_device_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698