| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 int32_t channels, const std::vector<double>& mixer) = 0; | 132 int32_t channels, const std::vector<double>& mixer) = 0; |
| 133 | 133 |
| 134 // Runs the callback as soon as the service becomes available. | 134 // Runs the callback as soon as the service becomes available. |
| 135 virtual void WaitForServiceToBeAvailable( | 135 virtual void WaitForServiceToBeAvailable( |
| 136 const WaitForServiceToBeAvailableCallback& callback) = 0; | 136 const WaitForServiceToBeAvailableCallback& callback) = 0; |
| 137 | 137 |
| 138 // Creates the instance. | 138 // Creates the instance. |
| 139 static CrasAudioClient* Create(); | 139 static CrasAudioClient* Create(); |
| 140 | 140 |
| 141 protected: | 141 protected: |
| 142 friend class CrasAudioClientTest; |
| 143 |
| 142 // Create() should be used instead. | 144 // Create() should be used instead. |
| 143 CrasAudioClient(); | 145 CrasAudioClient(); |
| 144 | 146 |
| 145 private: | 147 private: |
| 146 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 148 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace chromeos | 151 } // namespace chromeos |
| 150 | 152 |
| 151 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 153 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |