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