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

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

Issue 1956513002: Export Read/WriteValue from the GATT characteristic service provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome_api_changes_for_properties
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
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ca5d0c021a5844fc3b7c6d562f3381447b4c7fbf 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
@@ -66,6 +66,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
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 characteristic.
+ 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 characteristic.
+ 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,
@@ -93,6 +103,17 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
void OnSet(dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
+ // Called by the Delegate in response to a method to call to read the value
+ // of this characteristic.
+ 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 characteristic.
+ 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 characteristic value.
void OnFailure(dbus::MethodCall* method_call,
« no previous file with comments | « no previous file | device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698