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

Unified Diff: device/bluetooth/bluetooth_local_gatt_service.h

Issue 1973703002: Implement //device/bt changes for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notifications_dbus
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/bluetooth_local_gatt_service.h
diff --git a/device/bluetooth/bluetooth_local_gatt_service.h b/device/bluetooth/bluetooth_local_gatt_service.h
index 576ac1e1e2a16e0ab53d50d87067a66c1ea332ce..989810a9b5489a8442819dffc4d05f1227928aaa 100644
--- a/device/bluetooth/bluetooth_local_gatt_service.h
+++ b/device/bluetooth/bluetooth_local_gatt_service.h
@@ -124,6 +124,20 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattService
int offset,
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+
+ // Called when a remote device requests notifications to start for
+ // |characteristic|. This is only called if the characteristic has
+ // specified the notify or indicate property.
+ virtual void OnNotificationsStart(
+ const BluetoothLocalGattService* service,
+ const BluetoothLocalGattCharacteristic* characteristic) = 0;
+
+ // Called when a remote device requests notifications to stop for
+ // |characteristic|. This is only called if the characteristic has
+ // specified the notify or indicate property.
+ virtual void OnNotificationsStop(
+ const BluetoothLocalGattService* service,
+ const BluetoothLocalGattCharacteristic* characteristic) = 0;
};
// Creates a local GATT service to be used with |adapter| (which will own
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698