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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Limits the number of streams that can be created for testing purposes. | 254 // Limits the number of streams that can be created for testing purposes. |
255 virtual void SetMaxStreamCountForTesting(int max_input, int max_output); | 255 virtual void SetMaxStreamCountForTesting(int max_input, int max_output); |
256 | 256 |
257 protected: | 257 protected: |
258 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 258 AudioManager(scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
259 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); | 259 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner); |
260 virtual ~AudioManager(); | 260 virtual ~AudioManager(); |
261 | 261 |
262 private: | 262 private: |
263 friend class base::DeleteHelper<AudioManager>; | 263 friend class base::DeleteHelper<AudioManager>; |
| 264 friend class AudioManagerDeleter; |
264 | 265 |
265 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 266 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
266 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; | 267 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner_; |
267 DISALLOW_COPY_AND_ASSIGN(AudioManager); | 268 DISALLOW_COPY_AND_ASSIGN(AudioManager); |
268 }; | 269 }; |
269 | 270 |
270 } // namespace media | 271 } // namespace media |
271 | 272 |
272 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 273 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |