| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/dbus_bluez_manager_wrapper_linux.h" | 5 #include "device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.h" |
| 6 | 6 |
| 7 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 7 #include <string> |
| 8 #include "device/bluetooth/dbus/dbus_thread_manager_linux.h" | 8 |
| 9 #include "base/logging.h" |
| 10 #include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h" |
| 9 | 11 |
| 10 namespace bluez { | 12 namespace bluez { |
| 11 | 13 |
| 12 // static | 14 BluetoothLocalGattCharacteristicBlueZ::BluetoothLocalGattCharacteristicBlueZ( |
| 13 void DBusBluezManagerWrapperLinux::Initialize() { | 15 BluetoothLocalGattServiceBlueZ* service, |
| 14 DBusThreadManagerLinux::Initialize(); | 16 const dbus::ObjectPath& object_path) |
| 15 BluezDBusManager::Initialize( | 17 : BluetoothGattCharacteristicBlueZ(object_path), weak_ptr_factory_(this) { |
| 16 bluez::DBusThreadManagerLinux::Get()->GetSystemBus(), | 18 VLOG(1) << "Creating local GATT characteristic with identifier: " |
| 17 false /* use_dbus_stub */); | 19 << GetIdentifier(); |
| 18 } | 20 } |
| 19 | 21 |
| 20 // static | 22 BluetoothLocalGattCharacteristicBlueZ:: |
| 21 void DBusBluezManagerWrapperLinux::Shutdown() { | 23 ~BluetoothLocalGattCharacteristicBlueZ() {} |
| 22 bluez::BluezDBusManager::Shutdown(); | |
| 23 bluez::DBusThreadManagerLinux::Shutdown(); | |
| 24 } | |
| 25 | 24 |
| 26 } // namespace bluez | 25 } // namespace bluez |
| OLD | NEW |