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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
248 // If the hardware has only an input device (e.g. a webcam), the return value | 248 // If the hardware has only an input device (e.g. a webcam), the return value |
249 // will be empty (which the caller can then interpret to be the default output | 249 // will be empty (which the caller can then interpret to be the default output |
250 // device). Implementations that don't yet support this feature, must return | 250 // device). Implementations that don't yet support this feature, must return |
251 // an empty string. Must be called on the audio worker thread (see | 251 // an empty string. Must be called on the audio worker thread (see |
252 // GetWorkerTaskRunner()). | 252 // GetWorkerTaskRunner()). |
253 virtual std::string GetAssociatedOutputDeviceID( | 253 virtual std::string GetAssociatedOutputDeviceID( |
254 const std::string& input_device_id) = 0; | 254 const std::string& input_device_id) = 0; |
255 | 255 |
256 // Create a new AudioLog object for tracking the behavior for one or more | 256 // Create a new AudioLog object for tracking the behavior for one or more |
257 // instances of the given component. See AudioLogFactory for more details. | 257 // instances of the given component. See AudioLogFactory for more details. |
258 virtual scoped_ptr<AudioLog> CreateAudioLog( | 258 virtual std::unique_ptr<AudioLog> CreateAudioLog( |
danakj
2016/04/22 22:47:36
include memory
dcheng
2016/04/22 23:13:19
Already included by some kind soul
| |
259 AudioLogFactory::AudioComponent component) = 0; | 259 AudioLogFactory::AudioComponent component) = 0; |
260 | 260 |
261 protected: | 261 protected: |
262 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 262 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
263 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); | 263 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); |
264 virtual ~AudioManager(); | 264 virtual ~AudioManager(); |
265 | 265 |
266 private: | 266 private: |
267 friend class base::DeleteHelper<AudioManager>; | 267 friend class base::DeleteHelper<AudioManager>; |
268 | 268 |
269 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 269 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
270 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; | 270 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; |
271 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 271 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
272 }; | 272 }; |
273 | 273 |
274 } // namespace media | 274 } // namespace media |
275 | 275 |
276 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 276 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |