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

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

Issue 1974633002: Implement DBus changes needed for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 251fc2ad003c9c17c466a93daee9ae35fe72fdde..608b515aac6b830102cb423d62d158463d364dc3 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider_impl.h
@@ -27,6 +27,7 @@ namespace bluez {
class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
: public BluetoothGattCharacteristicServiceProvider {
public:
+ // Use nullptr for |bus| to create for testing.
BluetoothGattCharacteristicServiceProviderImpl(
dbus::Bus* bus,
const dbus::ObjectPath& object_path,
@@ -69,6 +70,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristicServiceProviderImpl
void WriteValue(dbus::MethodCall* method_call,
dbus::ExportedObject::ResponseSender response_sender);
+ // Called by BlueZ when a remote central is requesting to start a
+ // notification session for this characteristic.
+ void StartNotify(dbus::MethodCall* method_call,
+ dbus::ExportedObject::ResponseSender response_sender);
+
+ // Called by BlueZ when a remote central is requesting to stop any existing
+ // notification session for this characteristic.
+ void StopNotify(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,

Powered by Google App Engine
This is Rietveld 408576698