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

Unified Diff: device/bluetooth/bluez/bluetooth_adapter_bluez.h

Issue 2039773005: Add support in Chrome to send notifications to a specific device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/bluez/bluetooth_adapter_bluez.h
diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.h b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
index 3b3c5cf00c9f6ad248b7b9336be5a2b2d4404918..49bba2a48f304950e3f5c149bf10ff274c8ed5ce 100644
--- a/device/bluetooth/bluez/bluetooth_adapter_bluez.h
+++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.h
@@ -177,9 +177,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterBlueZ
// 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);
+ // this method will return false. Setting |device| to nullptr will send the
+ // notification to all connected devices.
+ bool SendValueChanged(const device::BluetoothDevice* device,
+ BluetoothLocalGattCharacteristicBlueZ* characteristic,
+ const std::vector<uint8_t>& value,
+ bool indicate);
// Returns the object path of the adapter.
dbus::ObjectPath GetApplicationObjectPath() const;
« no previous file with comments | « device/bluetooth/bluetooth_local_gatt_characteristic_unittest.cc ('k') | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698