OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "device/bluetooth/bluetooth_device.h" | 11 #include "device/bluetooth/bluetooth_device.h" |
12 | 12 |
13 #ifdef __OBJC__ | 13 #ifdef __OBJC__ |
14 @class IOBluetoothDevice; | 14 @class IOBluetoothDevice; |
15 #else | 15 #else |
16 class IOBluetoothDevice; | 16 class IOBluetoothDevice; |
17 #endif | 17 #endif |
18 | 18 |
19 namespace device { | 19 namespace device { |
20 | 20 |
21 class BluetoothDeviceMac : public BluetoothDevice { | 21 class BluetoothDeviceMac : public BluetoothDevice { |
22 public: | 22 public: |
23 explicit BluetoothDeviceMac(IOBluetoothDevice* device); | 23 explicit BluetoothDeviceMac(IOBluetoothDevice* device); |
24 virtual ~BluetoothDeviceMac(); | 24 virtual ~BluetoothDeviceMac(); |
25 | 25 |
26 // BluetoothDevice override | 26 // BluetoothDevice override |
| 27 virtual uint32 GetBluetoothClass() const OVERRIDE; |
27 virtual std::string GetAddress() const OVERRIDE; | 28 virtual std::string GetAddress() const OVERRIDE; |
| 29 virtual uint16 GetVendorID() const OVERRIDE; |
| 30 virtual uint16 GetProductID() const OVERRIDE; |
| 31 virtual uint16 GetDeviceID() const OVERRIDE; |
28 virtual bool IsPaired() const OVERRIDE; | 32 virtual bool IsPaired() const OVERRIDE; |
29 virtual bool IsConnected() const OVERRIDE; | 33 virtual bool IsConnected() const OVERRIDE; |
30 virtual bool IsConnectable() const OVERRIDE; | 34 virtual bool IsConnectable() const OVERRIDE; |
31 virtual bool IsConnecting() const OVERRIDE; | 35 virtual bool IsConnecting() const OVERRIDE; |
32 virtual ServiceList GetServices() const OVERRIDE; | 36 virtual ServiceList GetServices() const OVERRIDE; |
33 virtual void GetServiceRecords( | 37 virtual void GetServiceRecords( |
34 const ServiceRecordsCallback& callback, | 38 const ServiceRecordsCallback& callback, |
35 const ErrorCallback& error_callback) OVERRIDE; | 39 const ErrorCallback& error_callback) OVERRIDE; |
36 virtual void ProvidesServiceWithName( | 40 virtual void ProvidesServiceWithName( |
37 const std::string& name, | 41 const std::string& name, |
(...skipping 23 matching lines...) Expand all Loading... |
61 virtual void SetOutOfBandPairingData( | 65 virtual void SetOutOfBandPairingData( |
62 const BluetoothOutOfBandPairingData& data, | 66 const BluetoothOutOfBandPairingData& data, |
63 const base::Closure& callback, | 67 const base::Closure& callback, |
64 const ErrorCallback& error_callback) OVERRIDE; | 68 const ErrorCallback& error_callback) OVERRIDE; |
65 virtual void ClearOutOfBandPairingData( | 69 virtual void ClearOutOfBandPairingData( |
66 const base::Closure& callback, | 70 const base::Closure& callback, |
67 const ErrorCallback& error_callback) OVERRIDE; | 71 const ErrorCallback& error_callback) OVERRIDE; |
68 | 72 |
69 protected: | 73 protected: |
70 // BluetoothDevice override | 74 // BluetoothDevice override |
71 virtual uint32 GetBluetoothClass() const OVERRIDE; | |
72 virtual std::string GetDeviceName() const OVERRIDE; | 75 virtual std::string GetDeviceName() const OVERRIDE; |
73 | 76 |
74 private: | 77 private: |
75 friend class BluetoothAdapterMac; | 78 friend class BluetoothAdapterMac; |
76 | 79 |
77 IOBluetoothDevice* device_; | 80 IOBluetoothDevice* device_; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 82 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
80 }; | 83 }; |
81 | 84 |
82 } // namespace device | 85 } // namespace device |
83 | 86 |
84 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 87 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
OLD | NEW |