| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| 7 | 7 |
| 8 #include "device/bluetooth/bluetooth_device.h" | 8 #include "device/bluetooth/bluetooth_device.h" |
| 9 | 9 |
| 10 @class NSDate; | 10 @class NSDate; |
| 11 | 11 |
| 12 namespace device { | 12 namespace device { |
| 13 | 13 |
| 14 class BluetoothAdapterMac; |
| 15 |
| 14 class BluetoothDeviceMac : public BluetoothDevice { | 16 class BluetoothDeviceMac : public BluetoothDevice { |
| 15 public: | 17 public: |
| 16 ~BluetoothDeviceMac() override; | 18 ~BluetoothDeviceMac() override; |
| 17 | 19 |
| 18 // Returns the time of the most recent interaction with the device. Returns | 20 // Returns the time of the most recent interaction with the device. Returns |
| 19 // nil if the device has never been seen. | 21 // nil if the device has never been seen. |
| 20 virtual NSDate* GetLastUpdateTime() const = 0; | 22 virtual NSDate* GetLastUpdateTime() const = 0; |
| 21 | 23 |
| 22 protected: | 24 protected: |
| 23 BluetoothDeviceMac(); | 25 BluetoothDeviceMac(BluetoothAdapterMac* adapter); |
| 24 | 26 |
| 25 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 27 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 } // namespace device | 30 } // namespace device |
| 29 | 31 |
| 30 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 32 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
| OLD | NEW |