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 #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 Loading... |
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 |
OLD | NEW |