OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 // AudioOutputDeviceEnumerator is used to enumerate audio output devices. | 5 // AudioOutputDeviceEnumerator is used to enumerate audio output devices. |
6 // It can return cached results of previous enumerations in order to boost | 6 // It can return cached results of previous enumerations in order to boost |
7 // performance. | 7 // performance. |
8 // All its public methods must be called on the thread where the object is | 8 // All its public methods must be called on the thread where the object is |
9 // created. | 9 // created. |
10 | 10 |
11 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ | 11 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ |
12 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ | 12 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ |
13 | 13 |
14 #include <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include <list> | 16 #include <list> |
17 #include <memory> | 17 #include <memory> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "base/callback.h" | 21 #include "base/callback.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/threading/thread_checker.h" | 24 #include "base/threading/thread_checker.h" |
25 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
26 #include "media/audio/audio_parameters.h" | 26 #include "media/base/audio_parameters.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class SingleThreadTaskRunner; | 29 class SingleThreadTaskRunner; |
30 } | 30 } |
31 | 31 |
32 namespace media { | 32 namespace media { |
33 class AudioManager; | 33 class AudioManager; |
34 } | 34 } |
35 | 35 |
36 namespace content { | 36 namespace content { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 base::ThreadChecker thread_checker_; | 117 base::ThreadChecker thread_checker_; |
118 base::WeakPtrFactory<AudioOutputDeviceEnumerator> weak_factory_; | 118 base::WeakPtrFactory<AudioOutputDeviceEnumerator> weak_factory_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(AudioOutputDeviceEnumerator); | 120 DISALLOW_COPY_AND_ASSIGN(AudioOutputDeviceEnumerator); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace content | 123 } // namespace content |
124 | 124 |
125 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ | 125 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_OUTPUT_DEVICE_ENUMERATOR_H_ |
OLD | NEW |