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

Unified Diff: device/bluetooth/bluetooth_adapter_win.cc

Issue 1681853003: Add BluetoothRemoteGattServiceWin to BluetoothDeviceWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: device/bluetooth/bluetooth_adapter_win.cc
diff --git a/device/bluetooth/bluetooth_adapter_win.cc b/device/bluetooth/bluetooth_adapter_win.cc
index 68f781214c74167c9abad8454cb04e27e57f70e8..37378739f53a38f41fb2f6027667e70b308576db 100644
--- a/device/bluetooth/bluetooth_adapter_win.cc
+++ b/device/bluetooth/bluetooth_adapter_win.cc
@@ -375,4 +375,43 @@ void BluetoothAdapterWin::MaybePostStopDiscoveryTask() {
task_manager_->PostStopDiscoveryTask();
}
+void BluetoothAdapterWin::NotifyGattServiceAdded(
+ BluetoothDevice* device,
+ BluetoothGattService* service) {
+ DCHECK(service);
+ DCHECK(device);
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ GattServiceAdded(this, device, service));
+}
+
+void BluetoothAdapterWin::NotifyGattServiceRemoved(
+ BluetoothDevice* device,
+ BluetoothGattService* service) {
+ DCHECK(service);
+ DCHECK(device);
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ GattServiceRemoved(this, device, service));
+}
+
+void BluetoothAdapterWin::NotifyGattServicesDiscovered(
+ BluetoothDevice* device) {
+ DCHECK(device);
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ GattServicesDiscovered(this, device));
+}
+
+void BluetoothAdapterWin::NotifyGattDiscoveryCompleteForService(
+ BluetoothGattService* service) {
+ DCHECK(service);
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ GattDiscoveryCompleteForService(this, service));
+}
+
+void BluetoothAdapterWin::NotifyGattServiceChanged(
+ BluetoothGattService* service) {
+ DCHECK(service);
+ FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
+ GattServiceChanged(this, service));
+}
+
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698