| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 // Options used to initiate Media Endpoint and select configuration for the | 202 // Options used to initiate Media Endpoint and select configuration for the |
| 203 // transport. | 203 // transport. |
| 204 device::BluetoothAudioSink::Options options_; | 204 device::BluetoothAudioSink::Options options_; |
| 205 | 205 |
| 206 // Media Endpoint object owned by the audio sink object. | 206 // Media Endpoint object owned by the audio sink object. |
| 207 scoped_ptr<BluetoothMediaEndpointServiceProvider> media_endpoint_; | 207 scoped_ptr<BluetoothMediaEndpointServiceProvider> media_endpoint_; |
| 208 | 208 |
| 209 // List of observers interested in event notifications from us. Objects in | 209 // List of observers interested in event notifications from us. Objects in |
| 210 // |observers_| are expected to outlive a BluetoothAudioSinkChromeOS object. | 210 // |observers_| are expected to outlive a BluetoothAudioSinkChromeOS object. |
| 211 ObserverList<BluetoothAudioSink::Observer> observers_; | 211 base::ObserverList<BluetoothAudioSink::Observer> observers_; |
| 212 | 212 |
| 213 // Note: This should remain the last member so it'll be destroyed and | 213 // Note: This should remain the last member so it'll be destroyed and |
| 214 // invalidate its weak pointers before any other members are destroyed. | 214 // invalidate its weak pointers before any other members are destroyed. |
| 215 base::WeakPtrFactory<BluetoothAudioSinkChromeOS> weak_ptr_factory_; | 215 base::WeakPtrFactory<BluetoothAudioSinkChromeOS> weak_ptr_factory_; |
| 216 | 216 |
| 217 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSinkChromeOS); | 217 DISALLOW_COPY_AND_ASSIGN(BluetoothAudioSinkChromeOS); |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 } // namespace chromeos | 220 } // namespace chromeos |
| 221 | 221 |
| 222 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ | 222 #endif // DEVICE_BLUETOOTH_BLUETOOTH_AUDIO_SINK_CHROMEOS_H_ |
| OLD | NEW |