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

Unified Diff: chromecast/media/audio/cast_audio_manager_factory.cc

Issue 1105803002: Exposes a shlib interface for media/audio path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/audio/cast_audio_manager_factory.cc
diff --git a/chromecast/media/audio/cast_audio_manager_factory.cc b/chromecast/media/audio/cast_audio_manager_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ebdf5449fe6c8cba36e1f89b9a0a0c5a2c09767a
--- /dev/null
+++ b/chromecast/media/audio/cast_audio_manager_factory.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 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.
+
+#include "chromecast/media/audio/cast_audio_manager_factory.h"
+
+#include "base/logging.h"
+#include "chromecast/media/audio/cast_audio_manager.h"
+
+namespace media {
+
+CastAudioManagerFactory::CastAudioManagerFactory(
+ chromecast::CastAudioStreamProvider* audio_stream_provider)
+ : audio_stream_provider_(audio_stream_provider) {
+ CHECK(audio_stream_provider_);
+}
+
+CastAudioManagerFactory::~CastAudioManagerFactory() {
+}
+
+media::AudioManager* CastAudioManagerFactory::CreateInstance(
+ AudioLogFactory* audio_log_factory) {
+ // Create an AudioManager and pass ownership to the caller.
+ return new CastAudioManager(audio_log_factory, audio_stream_provider_);
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698