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 "base/macros.h" |
8 #include "device/bluetooth/bluetooth_device.h" | 9 #include "device/bluetooth/bluetooth_device.h" |
9 | 10 |
10 @class NSDate; | 11 @class NSDate; |
11 | 12 |
12 namespace device { | 13 namespace device { |
13 | 14 |
14 class BluetoothAdapterMac; | 15 class BluetoothAdapterMac; |
15 | 16 |
16 class BluetoothDeviceMac : public BluetoothDevice { | 17 class BluetoothDeviceMac : public BluetoothDevice { |
17 public: | 18 public: |
18 ~BluetoothDeviceMac() override; | 19 ~BluetoothDeviceMac() override; |
19 | 20 |
20 // Returns the time of the most recent interaction with the device. Returns | 21 // Returns the time of the most recent interaction with the device. Returns |
21 // nil if the device has never been seen. | 22 // nil if the device has never been seen. |
22 virtual NSDate* GetLastUpdateTime() const = 0; | 23 virtual NSDate* GetLastUpdateTime() const = 0; |
23 | 24 |
24 protected: | 25 protected: |
25 BluetoothDeviceMac(BluetoothAdapterMac* adapter); | 26 BluetoothDeviceMac(BluetoothAdapterMac* adapter); |
26 | 27 |
27 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 28 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
28 }; | 29 }; |
29 | 30 |
30 } // namespace device | 31 } // namespace device |
31 | 32 |
32 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 33 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
OLD | NEW |