| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GATT_DESCRIPTOR_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // descriptors. This method will return NULL if |uuid| is any one of the | 131 // descriptors. This method will return NULL if |uuid| is any one of the |
| 132 // unsupported predefined descriptor UUIDs. | 132 // unsupported predefined descriptor UUIDs. |
| 133 static BluetoothGattDescriptor* Create( | 133 static BluetoothGattDescriptor* Create( |
| 134 const BluetoothUUID& uuid, | 134 const BluetoothUUID& uuid, |
| 135 const std::vector<uint8>& value, | 135 const std::vector<uint8>& value, |
| 136 BluetoothGattCharacteristic::Permissions permissions); | 136 BluetoothGattCharacteristic::Permissions permissions); |
| 137 | 137 |
| 138 // Identifier used to uniquely identify a GATT descriptor object. This is | 138 // Identifier used to uniquely identify a GATT descriptor object. This is |
| 139 // different from the descriptor UUID: while multiple descriptors with the | 139 // different from the descriptor UUID: while multiple descriptors with the |
| 140 // same UUID can exist on a Bluetooth device, the identifier returned from | 140 // same UUID can exist on a Bluetooth device, the identifier returned from |
| 141 // this method is unique among all descriptors of a device. The contents of | 141 // this method is unique among all descriptors on the adapter. The contents of |
| 142 // the identifier are platform specific. | 142 // the identifier are platform specific. |
| 143 virtual std::string GetIdentifier() const = 0; | 143 virtual std::string GetIdentifier() const = 0; |
| 144 | 144 |
| 145 // The Bluetooth-specific UUID of the characteristic descriptor. | 145 // The Bluetooth-specific UUID of the characteristic descriptor. |
| 146 virtual BluetoothUUID GetUUID() const = 0; | 146 virtual BluetoothUUID GetUUID() const = 0; |
| 147 | 147 |
| 148 // Returns true, if this characteristic descriptor is hosted locally. If | 148 // Returns true, if this characteristic descriptor is hosted locally. If |
| 149 // false, then this instance represents a remote descriptor. | 149 // false, then this instance represents a remote descriptor. |
| 150 virtual bool IsLocal() const = 0; | 150 virtual bool IsLocal() const = 0; |
| 151 | 151 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 182 BluetoothGattDescriptor(); | 182 BluetoothGattDescriptor(); |
| 183 virtual ~BluetoothGattDescriptor(); | 183 virtual ~BluetoothGattDescriptor(); |
| 184 | 184 |
| 185 private: | 185 private: |
| 186 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptor); | 186 DISALLOW_COPY_AND_ASSIGN(BluetoothGattDescriptor); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace device | 189 } // namespace device |
| 190 | 190 |
| 191 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ | 191 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_DESCRIPTOR_H_ |
| OLD | NEW |