| Index: device/bluetooth/bluez/bluetooth_gatt_characteristic_delegate_wrapper.h | 
| diff --git a/device/bluetooth/bluez/bluetooth_gatt_characteristic_delegate_wrapper.h b/device/bluetooth/bluez/bluetooth_gatt_characteristic_delegate_wrapper.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..2c21c72449ff951f609e506837e0ae2c77498a48 | 
| --- /dev/null | 
| +++ b/device/bluetooth/bluez/bluetooth_gatt_characteristic_delegate_wrapper.h | 
| @@ -0,0 +1,49 @@ | 
| +// 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. | 
| + | 
| +#ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_GATT_CHARACTERISTIC_DELEGATE_WRAPPER_H_ | 
| +#define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_GATT_CHARACTERISTIC_DELEGATE_WRAPPER_H_ | 
| + | 
| +#include <cstdint> | 
| +#include <vector> | 
| + | 
| +#include "base/callback_forward.h" | 
| +#include "base/macros.h" | 
| +#include "device/bluetooth/bluetooth_local_gatt_service.h" | 
| +#include "device/bluetooth/bluez/bluetooth_gatt_service_bluez.h" | 
| +#include "device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h" | 
| + | 
| +namespace bluez { | 
| + | 
| +class BluetoothLocalGattCharacteristicBlueZ; | 
| + | 
| +// Wrapper class around AttributeValueDelegate to handle characteristics. | 
| +class BluetoothGattCharacteristicDelegateWrapper | 
| +    : public BluetoothLocalGattServiceBlueZ::AttributeValueDelegate { | 
| + public: | 
| +  BluetoothGattCharacteristicDelegateWrapper( | 
| +      BluetoothLocalGattServiceBlueZ* service, | 
| +      BluetoothLocalGattCharacteristicBlueZ* characteristic); | 
| + | 
| +  void GetValue( | 
| +      const device::BluetoothLocalGattService::Delegate::ValueCallback& | 
| +          callback, | 
| +      const device::BluetoothLocalGattService::Delegate::ErrorCallback& | 
| +          error_callback) override; | 
| +  void SetValue( | 
| +      const std::vector<uint8_t>& value, | 
| +      const base::Closure& callback, | 
| +      const device::BluetoothLocalGattService::Delegate::ErrorCallback& | 
| +          error_callback) override; | 
| + | 
| + private: | 
| +  BluetoothLocalGattServiceBlueZ* service_; | 
| +  BluetoothLocalGattCharacteristicBlueZ* characteristic_; | 
| + | 
| +  DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicDelegateWrapper); | 
| +}; | 
| + | 
| +}  // namespace bluez | 
| + | 
| +#endif  // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_GATT_CHARACTERISTIC_DELEGATE_WRAPPER_H_ | 
|  |