commit | a65ced97ca5fe61b342eeda935248175e1a6ab74 | [log] [tgz] |
---|---|---|
author | rkc <[email protected]> | Thu Apr 28 06:56:38 2016 |
committer | Commit bot <[email protected]> | Thu Apr 28 06:58:22 2016 |
tree | 75ff0472146f79f7ec010166173d91972f149989 | |
parent | da2f89b031149de3966bda976cb5ac7ed3b5d4ac [diff] [blame] |
Bluetooth class changes for implementing local GATT attributes. In this CL, we implement the changes to the platform independent and BlueZ specific class changes to support local GATT services. The major changes from the code in trunk are, .) Cleaning up of the classes and implementing all missing parts. .) Adding code to properly take ownership of attributes of all three kinds. .) Adding structure to the attributes to correctly setup the hierarchy expected (services <-- characteristics <-- descriptors). .) Addition of an AttributeDelegate to handle calls from DBus and wrappers to translate them to the BluetoothLocalGattService::Delegate. .) Cleanup in all the code touched. Part 1 of a 3 patch series: https://crrev.com/1915803002 Bluetooth class changes <<< https://crrev.com/1914893002 DBus class changes https://crrev.com/1919683002 Adapter changes + tests [email protected], [email protected] BUG=601935 Review-Url: https://codereview.chromium.org/1915803002 Cr-Commit-Position: refs/heads/master@{#390315}
diff --git a/device/bluetooth/bluetooth_local_gatt_characteristic.h b/device/bluetooth/bluetooth_local_gatt_characteristic.h index f062452e..9170d38 100644 --- a/device/bluetooth/bluetooth_local_gatt_characteristic.h +++ b/device/bluetooth/bluetooth_local_gatt_characteristic.h
@@ -42,9 +42,8 @@ // characteristic. // TODO(rkc): Investigate how to handle |PROPERTY_EXTENDED_PROPERTIES| // correctly. - static BluetoothLocalGattCharacteristic* Create( + static base::WeakPtr<BluetoothLocalGattCharacteristic> Create( const BluetoothUUID& uuid, - const std::vector<uint8_t>& value, Properties properties, Permissions permissions, BluetoothLocalGattService* service);