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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h b/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h
index 9c95eeb8d1cc888d61e2a6f9791e0d9e08743a59..1c95c4c77d73e80716a87d28c034a0a07c675400 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h
+++ b/components/proximity_auth/ble/bluetooth_low_energy_characteristics_finder.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDER_H
-#define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDER_H
+#ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDER_H_
+#define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_CHARACTERISTICS_FINDER_H_
#include "base/callback.h"
#include "base/macros.h"
@@ -11,7 +11,8 @@
#include "components/proximity_auth/ble/remote_attribute.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_device.h"
-#include "device/bluetooth/bluetooth_gatt_characteristic.h"
+#include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
+#include "device/bluetooth/bluetooth_remote_gatt_service.h"
#include "device/bluetooth/bluetooth_uuid.h"
namespace proximity_auth {
@@ -63,10 +64,10 @@ class BluetoothLowEnergyCharacteristicsFinder
// device::BluetoothAdapter::Observer:
void GattDiscoveryCompleteForService(
device::BluetoothAdapter* adapter,
- device::BluetoothGattService* service) override;
+ device::BluetoothRemoteGattService* service) override;
void GattCharacteristicAdded(
device::BluetoothAdapter* adapter,
- device::BluetoothGattCharacteristic* characteristic) override;
+ device::BluetoothRemoteGattCharacteristic* characteristic) override;
// For testing. Used to mock this class.
BluetoothLowEnergyCharacteristicsFinder();
@@ -74,7 +75,7 @@ class BluetoothLowEnergyCharacteristicsFinder
private:
// Handles the discovery of a new characteristic.
void HandleCharacteristicUpdate(
- device::BluetoothGattCharacteristic* characteristic);
+ device::BluetoothRemoteGattCharacteristic* characteristic);
// Scans the remote chracteristics of the service with |uuid| in |device|
// calling HandleCharacteristicUpdate() for each of them.
@@ -85,7 +86,7 @@ class BluetoothLowEnergyCharacteristicsFinder
// |from_peripheral_char_|
// when |characteristic| was found.
void UpdateCharacteristicsStatus(
- device::BluetoothGattCharacteristic* characteristic);
+ device::BluetoothRemoteGattCharacteristic* characteristic);
// Resets |success_callback_| and |success_callback_|. This should be called
// whenever a callback is called to avoid multiple callbacks calls.
@@ -114,4 +115,4 @@ class BluetoothLowEnergyCharacteristicsFinder
} // namespace proximity_auth
-#endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_CHARACTERISTICS_FINDER_H
+#endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_CHARACTERISTICS_FINDER_H_

Powered by Google App Engine
This is Rietveld 408576698