Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 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 AudioManagerFactory() {} | |
|
DaleCurtis
2015/04/23 16:18:25
No constructor on pure virtual interfaces.
slan
2015/04/23 18:11:33
Done.
| |
| 20 virtual ~AudioManagerFactory() {} | |
| 21 | |
| 22 // Creates an instance of AudioManager implementation. Caller owns the | |
| 23 // returned instance. |audio_log_factory| must outlive the returned instance. | |
| 24 virtual AudioManager* CreateInstance(AudioLogFactory* audio_log_factory) = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace media | |
| 28 | |
| 29 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ | |
| OLD | NEW |