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

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.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
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_service.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluez/bluetooth_adapter_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.h b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
index 63a5b147fa8aa7985a722ff64e8153801658d38a..91b88633bb511dece6566f035499d360a0430f73 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
@@ -45,6 +45,7 @@ namespace bluez {
class BluetoothBlueZTest;
class BluetoothAdapterProfileBlueZ;
class BluetoothDeviceBlueZ;
+class BluetoothLocalGattCharacteristicBlueZ;
class BluetoothLocalGattServiceBlueZ;
class BluetoothGattApplicationServiceProvider;
class BluetoothPairingBlueZ;
@@ -178,6 +179,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterBlueZ
// Returns if a given service is currently registered.
bool IsGattServiceRegistered(BluetoothLocalGattServiceBlueZ* service);
+ // Send a notification for this characteristic that its value has been
+ // updated. If the service that owns that characteristic is not registered,
+ // this method will return false.
+ bool SendValueChanged(BluetoothLocalGattCharacteristicBlueZ* characteristic,
+ const std::vector<uint8_t>& value);
+
// Returns the object path of the adapter.
dbus::ObjectPath GetApplicationObjectPath() const;
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_service.h ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698