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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.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_attribute_value_delegate.h
diff --git a/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h
index f44847aab58d2d415546bc5629c10f6635a94b49..69898e63e222bec360e2bde4d2d2fc50dee35d77 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h
+++ b/device/bluetooth/dbus/bluetooth_gatt_attribute_value_delegate.h
@@ -44,6 +44,16 @@ class BluetoothGattAttributeValueDelegate {
const base::Closure& callback,
const device::BluetoothLocalGattService::Delegate::ErrorCallback&
error_callback) = 0;
+
+ // This method will be called, when a remote device requests to start sending
+ // notifications for this characteristic. This will never be called for
+ // descriptors.
+ virtual void StartNotifications() = 0;
+
+ // This method will be called, when a remote device requests to stop sending
+ // notifications for this characteristic. This will never be called for
+ // descriptors.
+ virtual void StopNotifications() = 0;
};
} // namespace bluez

Powered by Google App Engine
This is Rietveld 408576698