| OLD | NEW |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback_old.h" | |
| 11 | 10 |
| 12 namespace chromeos { | 11 namespace chromeos { |
| 13 | 12 |
| 14 class AudioMixer { | 13 class AudioMixer { |
| 15 public: | 14 public: |
| 16 AudioMixer() {} | 15 AudioMixer() {} |
| 17 virtual ~AudioMixer() {} | 16 virtual ~AudioMixer() {} |
| 18 | 17 |
| 19 // Initializes the connection to the device. This must be called on the UI | 18 // Initializes the connection to the device. This must be called on the UI |
| 20 // thread; blocking tasks may take place in the background. IsInitialized() | 19 // thread; blocking tasks may take place in the background. IsInitialized() |
| (...skipping 25 matching lines...) Expand all Loading... |
| 46 // initialization is complete. | 45 // initialization is complete. |
| 47 virtual void SetMuted(bool mute) = 0; | 46 virtual void SetMuted(bool mute) = 0; |
| 48 | 47 |
| 49 private: | 48 private: |
| 50 DISALLOW_COPY_AND_ASSIGN(AudioMixer); | 49 DISALLOW_COPY_AND_ASSIGN(AudioMixer); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 } // namespace chromeos | 52 } // namespace chromeos |
| 54 | 53 |
| 55 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ | 54 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_MIXER_H_ |
| OLD | NEW |