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

Unified Diff: media/audio/audio_manager_factory.h

Issue 1104583002: Adds method to provide custom AudioManager at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split into multiple CLs. 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: media/audio/audio_manager_factory.h
diff --git a/media/audio/audio_manager_factory.h b/media/audio/audio_manager_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..0996bc89da3605cc99ea80f746722cbb4f645ecb
--- /dev/null
+++ b/media/audio/audio_manager_factory.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
DaleCurtis 2015/04/23 16:18:25 no (c) anymore.
slan 2015/04/23 18:11:33 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
+#define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
+
+#include "media/base/media_export.h"
+
+namespace media {
+
+class AudioManager;
+class AudioLogFactory;
+
+// Allows a platform-specific implementation of AudioManager to be provided in
+// place of the default implementation at run-time.
+class MEDIA_EXPORT AudioManagerFactory {
+ public:
+ AudioManagerFactory() {}
DaleCurtis 2015/04/23 16:18:25 No constructor on pure virtual interfaces.
slan 2015/04/23 18:11:33 Done.
+ virtual ~AudioManagerFactory() {}
+
+ // Creates an instance of AudioManager implementation. Caller owns the
+ // returned instance. |audio_log_factory| must outlive the returned instance.
+ virtual AudioManager* CreateInstance(AudioLogFactory* audio_log_factory) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698