| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h" |
| 6 |
| 7 #include "dbus/object_path.h" |
| 8 #include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
| 9 #include "device/bluetooth/bluez/bluetooth_device_bluez.h" |
| 10 #include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h" |
| 11 |
| 12 namespace bluez { |
| 13 |
| 14 BluetoothGattAttributeValueDelegate::BluetoothGattAttributeValueDelegate( |
| 15 BluetoothLocalGattServiceBlueZ* service) |
| 16 : service_(service) {} |
| 17 |
| 18 BluetoothGattAttributeValueDelegate::~BluetoothGattAttributeValueDelegate() {} |
| 19 |
| 20 device::BluetoothDevice* BluetoothGattAttributeValueDelegate::GetDeviceWithPath( |
| 21 const dbus::ObjectPath& object_path) { |
| 22 return service_->GetAdapter()->GetDeviceWithPath(object_path); |
| 23 } |
| 24 |
| 25 } // namespace bluez |
| OLD | NEW |