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

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

Issue 1984723006: Add implementation for parsing device info in read/write attribute calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devices_dbus_readwrite
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 ce1bc0c477cdcaec35bd33b1799898c677918342..9038d6164eecb0ca387cfda46b9b91e8f247d4cf 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_descriptor_service_provider_impl.h
@@ -58,16 +58,35 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptorServiceProviderImpl
void GetAll(dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
+ // Called by BlueZ when a remote central is requesting to read the value of
+ // this descriptor.
+ void ReadValue(dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
+ // Called by BlueZ when a remote central is requesting to write the value of
+ // this descriptor.
+ void WriteValue(dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
// Called by dbus:: when a method is exported.
void OnExported(const std::string& interface_name,
const std::string& method_name,
bool success);
- // Writes the characteristics's properties into the provided writer. If
- // value is not null, it is written also, otherwise no value property is
- // written.
+ // Writes the descriptor's properties into the provided writer.
void WriteProperties(dbus::MessageWriter* writer) override;
+ // Called by the Delegate in response to a method to call to read the value
+ // of this descriptor.
+ void OnReadValue(dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender,
+ const std::vector<uint8_t>& value);
+
+ // Called by the Delegate in response to a method to call to write the value
+ // of this descriptor.
+ void OnWriteValue(dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
// Called by the Delegate in response to a failed method call to get or set
// the descriptor value.
void OnFailure(dbus::MethodCall* method_call,

Powered by Google App Engine
This is Rietveld 408576698