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

Side by Side Diff: chromeos/dbus/bluetooth_media_transport_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
« no previous file with comments | « chromeos/dbus/bluetooth_media_client.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_transport_client.h" 5 #include "chromeos/dbus/bluetooth_media_transport_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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 reader.PopString(&error_message); 273 reader.PopString(&error_message);
274 } else { 274 } else {
275 error_name = kNoResponseError; 275 error_name = kNoResponseError;
276 } 276 }
277 error_callback.Run(error_name, error_message); 277 error_callback.Run(error_name, error_message);
278 } 278 }
279 279
280 dbus::ObjectManager* object_manager_; 280 dbus::ObjectManager* object_manager_;
281 281
282 // List of observers interested in event notifications from us. 282 // List of observers interested in event notifications from us.
283 ObserverList<BluetoothMediaTransportClient::Observer> observers_; 283 base::ObserverList<BluetoothMediaTransportClient::Observer> observers_;
284 284
285 base::WeakPtrFactory<BluetoothMediaTransportClientImpl> weak_ptr_factory_; 285 base::WeakPtrFactory<BluetoothMediaTransportClientImpl> weak_ptr_factory_;
286 286
287 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaTransportClientImpl); 287 DISALLOW_COPY_AND_ASSIGN(BluetoothMediaTransportClientImpl);
288 }; 288 };
289 289
290 BluetoothMediaTransportClient::BluetoothMediaTransportClient() { 290 BluetoothMediaTransportClient::BluetoothMediaTransportClient() {
291 } 291 }
292 292
293 BluetoothMediaTransportClient::~BluetoothMediaTransportClient() { 293 BluetoothMediaTransportClient::~BluetoothMediaTransportClient() {
294 } 294 }
295 295
296 BluetoothMediaTransportClient* BluetoothMediaTransportClient::Create() { 296 BluetoothMediaTransportClient* BluetoothMediaTransportClient::Create() {
297 return new BluetoothMediaTransportClientImpl(); 297 return new BluetoothMediaTransportClientImpl();
298 } 298 }
299 299
300 } // namespace chromeos 300 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_media_client.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698