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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_descriptor_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_descriptor_service_provider_impl.h
diff --git a/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h b/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h
index 46874bb670e1a641d56a059846625f8f61911f4f..2f60360fcf1d732984f16295cf92e8be5c2e9e4c 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h
@@ -31,16 +31,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptorServiceProviderImpl
const dbus::ObjectPath& object_path,
std::unique_ptr<BluetoothGattAttributeValueDelegate> delegate,
const std::string& uuid,
- const std::vector<std::string>& permissions,
+ const std::vector<std::string>& flags,
const dbus::ObjectPath& characteristic_path);
~BluetoothGattDescriptorServiceProviderImpl() override;
- // For testing.
- BluetoothGattDescriptorServiceProviderImpl(
- const dbus::ObjectPath& object_path,
- const std::string& uuid,
- const dbus::ObjectPath& characteristic_path);
-
// BluetoothGattDescriptorServiceProvider override.
void SendValueChanged(const std::vector<uint8_t>& value) override;
@@ -105,6 +99,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptorServiceProviderImpl
// 128-bit descriptor UUID of this object.
std::string uuid_;
+ // Permissions for this descriptor.
+ 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