| Index: device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc
|
| diff --git a/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..238dc6e4fee199e4ae496f0c38813699ed81b02a
|
| --- /dev/null
|
| +++ b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h"
|
| +
|
| +#include "dbus/object_path.h"
|
| +#include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
|
| +#include "device/bluetooth/bluez/bluetooth_device_bluez.h"
|
| +#include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h"
|
| +
|
| +namespace bluez {
|
| +
|
| +BluetoothGattAttributeValueDelegate::BluetoothGattAttributeValueDelegate(
|
| + BluetoothLocalGattServiceBlueZ* service)
|
| + : service_(service) {}
|
| +
|
| +BluetoothGattAttributeValueDelegate::~BluetoothGattAttributeValueDelegate() {}
|
| +
|
| +device::BluetoothDevice* BluetoothGattAttributeValueDelegate::GetDeviceWithPath(
|
| + const dbus::ObjectPath& object_path) {
|
| + return service_->GetAdapter()->GetDeviceWithPath(object_path);
|
| +}
|
| +
|
| +} // namespace bluez
|
|
|