| 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // | 44 // |
| 45 // Currently, only custom UUIDs, |kCharacteristicDescriptionUuid|, and | 45 // Currently, only custom UUIDs, |kCharacteristicDescriptionUuid|, and |
| 46 // |kCharacteristicPresentationFormat| are supported for locally hosted | 46 // |kCharacteristicPresentationFormat| are supported for locally hosted |
| 47 // descriptors. This method will return NULL if |uuid| is any one of the | 47 // descriptors. This method will return NULL if |uuid| is any one of the |
| 48 // unsupported predefined descriptor UUIDs. | 48 // unsupported predefined descriptor UUIDs. |
| 49 static base::WeakPtr<BluetoothLocalGattDescriptor> Create( | 49 static base::WeakPtr<BluetoothLocalGattDescriptor> Create( |
| 50 const BluetoothUUID& uuid, | 50 const BluetoothUUID& uuid, |
| 51 BluetoothGattCharacteristic::Permissions permissions, | 51 BluetoothGattCharacteristic::Permissions permissions, |
| 52 BluetoothLocalGattCharacteristic* characteristic); | 52 BluetoothLocalGattCharacteristic* characteristic); |
| 53 | 53 |
| 54 virtual BluetoothLocalGattCharacteristic* GetCharacteristic() const = 0; |
| 55 |
| 54 protected: | 56 protected: |
| 55 BluetoothLocalGattDescriptor(); | 57 BluetoothLocalGattDescriptor(); |
| 56 ~BluetoothLocalGattDescriptor() override; | 58 ~BluetoothLocalGattDescriptor() override; |
| 57 | 59 |
| 58 private: | 60 private: |
| 59 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattDescriptor); | 61 DISALLOW_COPY_AND_ASSIGN(BluetoothLocalGattDescriptor); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // namespace device | 64 } // namespace device |
| 63 | 65 |
| 64 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ | 66 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOCAL_GATT_DESCRIPTOR_H_ |
| OLD | NEW |