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

Side by Side 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: Minor fixes, update to test factory. 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 unified diff | Download patch
« no previous file with comments | « media/audio/audio_manager.cc ('k') | media/audio/audio_manager_factory_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
7
8 #include "media/base/media_export.h"
9
10 namespace media {
11
12 class AudioManager;
13 class AudioLogFactory;
14
15 // Allows a platform-specific implementation of AudioManager to be provided in
16 // place of the default implementation at run-time.
17 class MEDIA_EXPORT AudioManagerFactory {
18 public:
19 virtual ~AudioManagerFactory() {}
20
21 // Creates an instance of AudioManager implementation. Caller owns the
22 // returned instance. |audio_log_factory| must outlive the returned instance.
23 virtual AudioManager* CreateInstance(AudioLogFactory* audio_log_factory) = 0;
24 };
25
26 } // namespace media
27
28 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.cc ('k') | media/audio/audio_manager_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698