OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 virtual void AddObserver(Observer* observer) = 0; | 91 virtual void AddObserver(Observer* observer) = 0; |
92 virtual void RemoveObserver(Observer* observer) = 0; | 92 virtual void RemoveObserver(Observer* observer) = 0; |
93 | 93 |
94 // Getters for state and volume. | 94 // Getters for state and volume. |
95 virtual State GetState() const = 0; | 95 virtual State GetState() const = 0; |
96 virtual uint16_t GetVolume() const = 0; | 96 virtual uint16_t GetVolume() const = 0; |
97 | 97 |
98 protected: | 98 protected: |
99 friend class base::RefCounted<BluetoothAudioSink>; | 99 friend class base::RefCounted<BluetoothAudioSink>; |
100 BluetoothAudioSink(); | 100 BluetoothAudioSink(); |
101 | |
102 // The destructor should invoke Unregister() to ensure the audio sink will be | |
armansito
2015/01/30 01:27:46
nit: Say "The destructor invokes Unregister()". Sa
Miao
2015/01/30 03:59:04
Done.
| |
103 // unregistered even if the user applications fail to do so. | |
101 virtual ~BluetoothAudioSink(); | 104 virtual ~BluetoothAudioSink(); |
102 | 105 |
103 private: | 106 private: |
104 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink); | 107 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSink); |
105 }; | 108 }; |
106 | 109 |
107 } // namespace device | 110 } // namespace device |
108 | 111 |
109 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ | 112 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_H_ |
OLD | NEW |