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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( |
64 device::BluetoothProfile* profile, | 64 BluetoothProfile* profile, |
| 65 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, |
| 66 scoped_refptr<base::SequencedTaskRunner> file_task_runner, |
| 67 net::NetLog* net_log, |
| 68 const net::NetLog::Source& source, |
65 const base::Closure& callback, | 69 const base::Closure& callback, |
66 const ErrorCallback& error_callback) OVERRIDE; | 70 const ErrorCallback& error_callback) OVERRIDE; |
67 virtual void SetOutOfBandPairingData( | 71 virtual void SetOutOfBandPairingData( |
68 const BluetoothOutOfBandPairingData& data, | 72 const BluetoothOutOfBandPairingData& data, |
69 const base::Closure& callback, | 73 const base::Closure& callback, |
70 const ErrorCallback& error_callback) OVERRIDE; | 74 const ErrorCallback& error_callback) OVERRIDE; |
71 virtual void ClearOutOfBandPairingData( | 75 virtual void ClearOutOfBandPairingData( |
72 const base::Closure& callback, | 76 const base::Closure& callback, |
73 const ErrorCallback& error_callback) OVERRIDE; | 77 const ErrorCallback& error_callback) OVERRIDE; |
74 | 78 |
75 protected: | 79 protected: |
76 // BluetoothDevice override | 80 // BluetoothDevice override |
77 virtual std::string GetDeviceName() const OVERRIDE; | 81 virtual std::string GetDeviceName() const OVERRIDE; |
78 | 82 |
79 private: | 83 private: |
80 friend class BluetoothAdapterMac; | 84 friend class BluetoothAdapterMac; |
81 | 85 |
82 IOBluetoothDevice* device_; | 86 IOBluetoothDevice* device_; |
83 | 87 |
84 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); | 88 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); |
85 }; | 89 }; |
86 | 90 |
87 } // namespace device | 91 } // namespace device |
88 | 92 |
89 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ | 93 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ |
OLD | NEW |