OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ |
7 | 7 |
8 #include "media/base/media_export.h" | 8 #include "media/base/media_export.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
11 | 11 |
12 class AudioManager; | 12 class AudioManager; |
13 class AudioManagerDeleter; | |
13 class AudioLogFactory; | 14 class AudioLogFactory; |
14 | 15 |
15 // Allows a platform-specific implementation of AudioManager to be provided in | 16 // Allows a platform-specific implementation of AudioManager to be provided in |
16 // place of the default implementation at run-time. | 17 // place of the default implementation at run-time. |
17 class MEDIA_EXPORT AudioManagerFactory { | 18 class MEDIA_EXPORT AudioManagerFactory { |
18 public: | 19 public: |
19 virtual ~AudioManagerFactory() {} | 20 virtual ~AudioManagerFactory() {} |
20 | 21 |
21 // Creates an instance of AudioManager implementation. Caller owns the | 22 // Creates an instance of AudioManager implementation. Caller owns the |
22 // returned instance. |audio_log_factory| must outlive the returned instance. | 23 // returned instance. |audio_log_factory| must outlive the returned instance. |
23 virtual AudioManager* CreateInstance(AudioLogFactory* audio_log_factory) = 0; | 24 virtual scoped_ptr<AudioManager, AudioManagerDeleter> CreateInstance( |
DaleCurtis
2016/03/22 21:58:27
ScopedPtrAudioManager?
alokp
2016/03/22 22:23:39
I would then need to include audio_manager.h here.
| |
25 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | |
26 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, | |
27 AudioLogFactory* audio_log_factory) = 0; | |
24 }; | 28 }; |
25 | 29 |
26 } // namespace media | 30 } // namespace media |
27 | 31 |
28 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ | 32 #endif // MEDIA_AUDIO_AUDIO_MANAGER_FACTORY_H_ |
OLD | NEW |