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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add PlatformSupportsLowEnergy check in the unittests Created 4 years, 10 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.gyp ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index e06b8bf2287651fc89cc248e3d8a2ec0deeed825..e099e32d12bdc4e98aaecb46f6412bc73fa26739 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -398,6 +398,25 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
const CreateAdvertisementCallback& callback,
const CreateAdvertisementErrorCallback& error_callback) = 0;
+ // The following methods are used to send various GATT observer events to
+ // observers.
+ void NotifyGattServiceAdded(BluetoothGattService* service);
+ void NotifyGattServiceRemoved(BluetoothGattService* service);
+ void NotifyGattServiceChanged(BluetoothGattService* service);
+ void NotifyGattServicesDiscovered(BluetoothDevice* device);
+ void NotifyGattDiscoveryComplete(BluetoothGattService* service);
+ void NotifyGattCharacteristicAdded(
+ BluetoothGattCharacteristic* characteristic);
+ void NotifyGattCharacteristicRemoved(
+ BluetoothGattCharacteristic* characteristic);
+ void NotifyGattDescriptorAdded(BluetoothGattDescriptor* descriptor);
+ void NotifyGattDescriptorRemoved(BluetoothGattDescriptor* descriptor);
+ void NotifyGattCharacteristicValueChanged(
+ BluetoothGattCharacteristic* characteristic,
+ const std::vector<uint8_t>& value);
+ void NotifyGattDescriptorValueChanged(BluetoothGattDescriptor* descriptor,
+ const std::vector<uint8_t>& value);
+
protected:
friend class base::RefCounted<BluetoothAdapter>;
friend class BluetoothDiscoverySession;
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698