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

Unified Diff: device/bluetooth/bluetooth_device_mac.h

Issue 13983004: Simplified BluetoothDeviceMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments. Created 7 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_mac.mm » ('j') | device/bluetooth/bluetooth_device_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_mac.h
diff --git a/device/bluetooth/bluetooth_device_mac.h b/device/bluetooth/bluetooth_device_mac.h
index 653c246c309992adec4606efd13ae55cd048aaa1..66ab5d6eb2960fb72dfc3b910f0fbdc37cca00ef 100644
--- a/device/bluetooth/bluetooth_device_mac.h
+++ b/device/bluetooth/bluetooth_device_mac.h
@@ -20,7 +20,7 @@ namespace device {
class BluetoothDeviceMac : public BluetoothDevice {
public:
- explicit BluetoothDeviceMac(const IOBluetoothDevice* device);
+ explicit BluetoothDeviceMac(IOBluetoothDevice* device);
virtual ~BluetoothDeviceMac();
// BluetoothDevice override
@@ -71,34 +71,7 @@ class BluetoothDeviceMac : public BluetoothDevice {
private:
friend class BluetoothAdapterMac;
- // Computes the fingerprint that can be used to compare the devices.
- static uint32 ComputeDeviceFingerprint(const IOBluetoothDevice* device);
-
- uint32 device_fingerprint() const {
- return device_fingerprint_;
- }
-
- // The Bluetooth class of the device, a bitmask that may be decoded using
- // https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm
- uint32 bluetooth_class_;
-
- // The name of the device, as supplied by the remote device.
- std::string name_;
-
- // The Bluetooth address of the device.
- std::string address_;
-
- // Tracked device state, updated by the adapter managing the lifecyle of
- // the device.
- bool paired_;
- bool connected_;
-
- // The services (identified by UUIDs) that this device provides.
- ServiceList service_uuids_;
-
- // Used to compare the devices.
- const uint32 device_fingerprint_;
- ServiceRecordList service_record_list_;
+ IOBluetoothDevice* device_;
DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
};
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_mac.mm » ('j') | device/bluetooth/bluetooth_device_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698