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

Side by Side Diff: chromeos/dbus/bluetooth_media_client.cc

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 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 #include "chromeos/dbus/bluetooth_media_client.h" 5 #include "chromeos/dbus/bluetooth_media_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 reader.PopString(&error_message); 208 reader.PopString(&error_message);
209 } else { 209 } else {
210 error_name = kNoResponseError; 210 error_name = kNoResponseError;
211 } 211 }
212 error_callback.Run(error_name, error_message); 212 error_callback.Run(error_name, error_message);
213 } 213 }
214 214
215 dbus::ObjectManager* object_manager_; 215 dbus::ObjectManager* object_manager_;
216 216
217 // List of observers interested in event notifications from us. 217 // List of observers interested in event notifications from us.
218 ObserverList<BluetoothMediaClient::Observer> observers_; 218 base::ObserverList<BluetoothMediaClient::Observer> observers_;
219 219
220 base::WeakPtrFactory<BluetoothMediaClientImpl> weak_ptr_factory_; 220 base::WeakPtrFactory<BluetoothMediaClientImpl> weak_ptr_factory_;
221 221
222 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaClientImpl); 222 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaClientImpl);
223 }; 223 };
224 224
225 BluetoothMediaClient::BluetoothMediaClient() { 225 BluetoothMediaClient::BluetoothMediaClient() {
226 } 226 }
227 227
228 BluetoothMediaClient::~BluetoothMediaClient() { 228 BluetoothMediaClient::~BluetoothMediaClient() {
229 } 229 }
230 230
231 BluetoothMediaClient* BluetoothMediaClient::Create() { 231 BluetoothMediaClient* BluetoothMediaClient::Create() {
232 return new BluetoothMediaClientImpl(); 232 return new BluetoothMediaClientImpl();
233 } 233 }
234 234
235 } // namespace chromeos 235 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_le_advertising_manager_client.cc ('k') | chromeos/dbus/bluetooth_media_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698