Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: device/bluetooth/bluetooth_audio_sink_chromeos.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_advertisement.h ('k') | device/bluetooth/bluetooth_task_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698