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" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void ConfirmPairing() OVERRIDE; | 53 virtual void ConfirmPairing() OVERRIDE; |
54 virtual void RejectPairing() OVERRIDE; | 54 virtual void RejectPairing() OVERRIDE; |
55 virtual void CancelPairing() OVERRIDE; | 55 virtual void CancelPairing() OVERRIDE; |
56 virtual void Disconnect( | 56 virtual void Disconnect( |
57 const base::Closure& callback, | 57 const base::Closure& callback, |
58 const ErrorCallback& error_callback) OVERRIDE; | 58 const ErrorCallback& error_callback) OVERRIDE; |
59 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 59 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
60 virtual void ConnectToService( | 60 virtual void ConnectToService( |
61 const std::string& service_uuid, | 61 const std::string& service_uuid, |
62 const SocketCallback& callback) OVERRIDE; | 62 const SocketCallback& callback) OVERRIDE; |
63 virtual void ConnectToProfile( | 63 virtual void ConnectToProfile(BluetoothProfile* profile, |
64 device::BluetoothProfile* profile, | 64 const base::Closure& callback, |
65 const base::Closure& callback, | 65 const ErrorCallback& error_callback) OVERRIDE; |
66 const ErrorCallback& error_callback) OVERRIDE; | |
67 virtual void SetOutOfBandPairingData( | 66 virtual void SetOutOfBandPairingData( |
68 const BluetoothOutOfBandPairingData& data, | 67 const BluetoothOutOfBandPairingData& data, |
69 const base::Closure& callback, | 68 const base::Closure& callback, |
70 const ErrorCallback& error_callback) OVERRIDE; | 69 const ErrorCallback& error_callback) OVERRIDE; |
71 virtual void ClearOutOfBandPairingData( | 70 virtual void ClearOutOfBandPairingData( |
72 const base::Closure& callback, | 71 const base::Closure& callback, |
73 const ErrorCallback& error_callback) OVERRIDE; | 72 const ErrorCallback& error_callback) OVERRIDE; |
74 | 73 |
75 protected: | 74 protected: |
76 // BluetoothDevice override | 75 // BluetoothDevice override |
77 virtual std::string GetDeviceName() const OVERRIDE; | 76 virtual std::string GetDeviceName() const OVERRIDE; |
78 | 77 |
79 private: | 78 private: |
80 friend class BluetoothAdapterMac; | 79 friend class BluetoothAdapterMac; |
81 | 80 |
82 IOBluetoothDevice* device_; | 81 IOBluetoothDevice* device_; |
83 | 82 |
84 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 83 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace device | 86 } // namespace device |
88 | 87 |
89 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 88 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
OLD | NEW |