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

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

Issue 1973343005: Remove service, add device, in BluetoothLocalGattService::Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698