OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_ |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual void OnDeviceChange() = 0; | 120 virtual void OnDeviceChange() = 0; |
121 }; | 121 }; |
122 | 122 |
123 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0; | 123 virtual void AddOutputDeviceChangeListener(AudioDeviceListener* listener) = 0; |
124 virtual void RemoveOutputDeviceChangeListener( | 124 virtual void RemoveOutputDeviceChangeListener( |
125 AudioDeviceListener* listener) = 0; | 125 AudioDeviceListener* listener) = 0; |
126 | 126 |
127 protected: | 127 protected: |
128 AudioManager(); | 128 AudioManager(); |
129 | 129 |
130 // Called from Create() to initialize the instance. | |
131 virtual void Init() = 0; | |
132 | |
133 private: | 130 private: |
134 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 131 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
135 }; | 132 }; |
136 | 133 |
137 } // namespace media | 134 } // namespace media |
138 | 135 |
139 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 136 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |