Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: device/bluetooth/bluetooth_gatt_descriptor.h

Issue 1412963004: bluetooth: android: Implement Characteristic GetIdentifier, fix Service IDs too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_characteristic_unittest.cc ('k') | device/bluetooth/bluetooth_gatt_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698