| 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 "device/bluetooth/dbus/bluetooth_media_endpoint_service_provider.h" | 5 #include "device/bluetooth/dbus/bluetooth_media_endpoint_service_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 12 #include "dbus/exported_object.h" | 15 #include "dbus/exported_object.h" |
| 13 #include "device/bluetooth/dbus/bluetooth_media_transport_client.h" | 16 #include "device/bluetooth/dbus/bluetooth_media_transport_client.h" |
| 14 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 17 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 15 #include "device/bluetooth/dbus/fake_bluetooth_media_endpoint_service_provider.h
" | 18 #include "device/bluetooth/dbus/fake_bluetooth_media_endpoint_service_provider.h
" |
| 16 | 19 |
| 17 namespace { | 20 namespace { |
| 18 | 21 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Returns a real implementation. | 307 // Returns a real implementation. |
| 305 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { | 308 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { |
| 306 return new BluetoothMediaEndpointServiceProviderImpl(bus, object_path, | 309 return new BluetoothMediaEndpointServiceProviderImpl(bus, object_path, |
| 307 delegate); | 310 delegate); |
| 308 } | 311 } |
| 309 // Returns a fake implementation. | 312 // Returns a fake implementation. |
| 310 return new FakeBluetoothMediaEndpointServiceProvider(object_path, delegate); | 313 return new FakeBluetoothMediaEndpointServiceProvider(object_path, delegate); |
| 311 } | 314 } |
| 312 | 315 |
| 313 } // namespace bluez | 316 } // namespace bluez |
| OLD | NEW |