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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // an empty string. Must be called on the audio worker thread (see | 170 // an empty string. Must be called on the audio worker thread (see |
171 // GetWorkerTaskRunner()). | 171 // GetWorkerTaskRunner()). |
172 virtual std::string GetAssociatedOutputDeviceID( | 172 virtual std::string GetAssociatedOutputDeviceID( |
173 const std::string& input_device_id) = 0; | 173 const std::string& input_device_id) = 0; |
174 | 174 |
175 // Create a new AudioLog object for tracking the behavior for one or more | 175 // Create a new AudioLog object for tracking the behavior for one or more |
176 // instances of the given component. See AudioLogFactory for more details. | 176 // instances of the given component. See AudioLogFactory for more details. |
177 virtual scoped_ptr<AudioLog> CreateAudioLog( | 177 virtual scoped_ptr<AudioLog> CreateAudioLog( |
178 AudioLogFactory::AudioComponent component) = 0; | 178 AudioLogFactory::AudioComponent component) = 0; |
179 | 179 |
| 180 // Informs the audio manager that the system has support for a keyboard mic. |
| 181 // This information will be passed on in the return value of |
| 182 // GetInputStreamParameters as an effect. Only supported on ChromeOS. |
| 183 virtual void SetHasKeyboardMic() = 0; |
| 184 |
180 protected: | 185 protected: |
181 AudioManager(); | 186 AudioManager(); |
182 | 187 |
183 private: | 188 private: |
184 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 189 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
185 }; | 190 }; |
186 | 191 |
187 } // namespace media | 192 } // namespace media |
188 | 193 |
189 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 194 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |