| 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_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ | 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ |
| 6 #define MEDIA_AUDIO_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ | 6 #define MEDIA_AUDIO_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ |
| 7 | 7 |
| 8 #include <CoreAudio/AudioHardware.h> | 8 #include <CoreAudio/AudioHardware.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 12 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
| 13 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 14 | 13 |
| 15 namespace media { | 14 namespace media { |
| 16 | 15 |
| 17 // AudioDeviceListenerMac facilitates execution of device listener callbacks | 16 // AudioDeviceListenerMac facilitates execution of device listener callbacks |
| 18 // issued via CoreAudio. | 17 // issued via CoreAudio. |
| 19 class MEDIA_EXPORT AudioDeviceListenerMac { | 18 class MEDIA_EXPORT AudioDeviceListenerMac { |
| 20 public: | 19 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 37 // AudioDeviceListenerMac must be constructed and destructed on the same | 36 // AudioDeviceListenerMac must be constructed and destructed on the same |
| 38 // thread. | 37 // thread. |
| 39 base::ThreadChecker thread_checker_; | 38 base::ThreadChecker thread_checker_; |
| 40 | 39 |
| 41 DISALLOW_COPY_AND_ASSIGN(AudioDeviceListenerMac); | 40 DISALLOW_COPY_AND_ASSIGN(AudioDeviceListenerMac); |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 } // namespace media | 43 } // namespace media |
| 45 | 44 |
| 46 #endif // MEDIA_AUDIO_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ | 45 #endif // MEDIA_AUDIO_MAC_AUDIO_DEVICE_LISTENER_MAC_H_ |
| OLD | NEW |