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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h

Issue 1954643002: DBus support for attribute properties and permissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@register_and_events
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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
diff --git a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
index f9c0f06d51316b9d0676d3355bdaf3a9786b1735..6181058900499bc1854bdf32fea1f36d1db92282 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
@@ -33,17 +33,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate,
const std::string& uuid,
const std::vector<std::string>& flags,
- const std::vector<std::string>& permissions,
const dbus::ObjectPath& service_path);
~BluetoothGattCharacteristicServiceProviderImpl() override;
- // For testing.
- BluetoothGattCharacteristicServiceProviderImpl(
- const dbus::ObjectPath& object_path,
- const std::string& uuid,
- const dbus::ObjectPath& service_path);
-
// BluetoothGattCharacteristicServiceProvider override.
void SendValueChanged(const std::vector<uint8_t>& value) override;
@@ -106,6 +99,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
// 128-bit characteristic UUID of this object.
std::string uuid_;
+ // Properties and permissions for this characteristic.
+ std::vector<std::string> flags_;
+
// D-Bus bus object is exported on, not owned by this object and must
// outlive it.
dbus::Bus* bus_;

Powered by Google App Engine
This is Rietveld 408576698