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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.h

Issue 2244693002: bluetooth: Refactor how we update based on Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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_low_energy_device_mac.h
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.h b/device/bluetooth/bluetooth_low_energy_device_mac.h
index 3101f13d8ac8f15baf9bd74fcf3bd3cb8cc58a3e..ca5ff5f6828b9c048cd97cfeed499de4a78fe941 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.h
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.h
@@ -34,13 +34,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
: public BluetoothDeviceMac {
public:
BluetoothLowEnergyDeviceMac(BluetoothAdapterMac* adapter,
- CBPeripheral* peripheral,
- NSDictionary* advertisement_data,
- int rssi);
+ CBPeripheral* peripheral);
~BluetoothLowEnergyDeviceMac() override;
- int GetRSSI() const;
-
// BluetoothDevice overrides.
std::string GetIdentifier() const override;
uint32_t GetBluetoothClass() const override;
@@ -97,9 +93,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
void DidUpdateNotificationState(CBCharacteristic* characteristic,
NSError* error);
- // Updates information about the device.
- virtual void Update(NSDictionary* advertisement_data, int rssi);
-
static std::string GetPeripheralIdentifier(CBPeripheral* peripheral);
// Hashes and truncates the peripheral identifier to deterministically
@@ -136,9 +129,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
base::scoped_nsobject<BluetoothLowEnergyPeripheralDelegate>
peripheral_delegate_;
- // RSSI value.
- int rssi_;
-
// Whether the device is connectable.
bool connectable_;

Powered by Google App Engine
This is Rietveld 408576698