| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 11 #include "media/audio/audio_manager.h" | 11 #include "media/audio/audio_manager.h" |
| 12 | 12 |
| 13 class AudioOutputDispatcher; | 13 class AudioOutputDispatcher; |
| 14 | 14 |
| 15 // AudioManagerBase provides AudioManager functions common for all platforms. | 15 // AudioManagerBase provides AudioManager functions common for all platforms. |
| 16 class AudioManagerBase : public AudioManager { | 16 class MEDIA_EXPORT AudioManagerBase : public AudioManager { |
| 17 public: | 17 public: |
| 18 // Name of the generic "default" device. | 18 // Name of the generic "default" device. |
| 19 static const char kDefaultDeviceName[]; | 19 static const char kDefaultDeviceName[]; |
| 20 | 20 |
| 21 AudioManagerBase(); | 21 AudioManagerBase(); |
| 22 | 22 |
| 23 virtual void Init(); | 23 virtual void Init(); |
| 24 virtual void Cleanup(); | 24 virtual void Cleanup(); |
| 25 | 25 |
| 26 virtual MessageLoop* GetMessageLoop(); | 26 virtual MessageLoop* GetMessageLoop(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 49 base::Thread audio_thread_; | 49 base::Thread audio_thread_; |
| 50 | 50 |
| 51 bool initialized_; | 51 bool initialized_; |
| 52 | 52 |
| 53 AudioOutputDispatchersMap output_dispatchers_; | 53 AudioOutputDispatchersMap output_dispatchers_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 55 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 58 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |