| 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_gatt_service_service_provider.h" | 5 #include "device/bluetooth/dbus/bluetooth_gatt_service_service_provider.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/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 12 #include "dbus/exported_object.h" | 13 #include "dbus/exported_object.h" |
| 13 #include "dbus/message.h" | 14 #include "dbus/message.h" |
| 14 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 15 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 15 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h" | 16 #include "device/bluetooth/dbus/fake_bluetooth_gatt_service_service_provider.h" |
| 16 #include "third_party/cros_system_api/dbus/service_constants.h" | 17 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 17 | 18 |
| 18 namespace bluez { | 19 namespace bluez { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 const std::vector<dbus::ObjectPath>& includes) { | 264 const std::vector<dbus::ObjectPath>& includes) { |
| 264 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { | 265 if (!bluez::BluezDBusManager::Get()->IsUsingStub()) { |
| 265 return new BluetoothGattServiceServiceProviderImpl(bus, object_path, uuid, | 266 return new BluetoothGattServiceServiceProviderImpl(bus, object_path, uuid, |
| 266 includes); | 267 includes); |
| 267 } | 268 } |
| 268 return new FakeBluetoothGattServiceServiceProvider(object_path, uuid, | 269 return new FakeBluetoothGattServiceServiceProvider(object_path, uuid, |
| 269 includes); | 270 includes); |
| 270 } | 271 } |
| 271 | 272 |
| 272 } // namespace bluez | 273 } // namespace bluez |
| OLD | NEW |