OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void ConfirmPairing() OVERRIDE; | 64 virtual void ConfirmPairing() OVERRIDE; |
65 virtual void RejectPairing() OVERRIDE; | 65 virtual void RejectPairing() OVERRIDE; |
66 virtual void CancelPairing() OVERRIDE; | 66 virtual void CancelPairing() OVERRIDE; |
67 virtual void Disconnect( | 67 virtual void Disconnect( |
68 const base::Closure& callback, | 68 const base::Closure& callback, |
69 const ErrorCallback& error_callback) OVERRIDE; | 69 const ErrorCallback& error_callback) OVERRIDE; |
70 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 70 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
71 virtual void ConnectToService( | 71 virtual void ConnectToService( |
72 const std::string& service_uuid, | 72 const std::string& service_uuid, |
73 const SocketCallback& callback) OVERRIDE; | 73 const SocketCallback& callback) OVERRIDE; |
| 74 virtual void ConnectToProfile( |
| 75 device::BluetoothProfile* profile, |
| 76 const ErrorCallback& error_callback) OVERRIDE; |
74 virtual void SetOutOfBandPairingData( | 77 virtual void SetOutOfBandPairingData( |
75 const device::BluetoothOutOfBandPairingData& data, | 78 const device::BluetoothOutOfBandPairingData& data, |
76 const base::Closure& callback, | 79 const base::Closure& callback, |
77 const ErrorCallback& error_callback) OVERRIDE; | 80 const ErrorCallback& error_callback) OVERRIDE; |
78 virtual void ClearOutOfBandPairingData( | 81 virtual void ClearOutOfBandPairingData( |
79 const base::Closure& callback, | 82 const base::Closure& callback, |
80 const ErrorCallback& error_callback) OVERRIDE; | 83 const ErrorCallback& error_callback) OVERRIDE; |
81 | 84 |
82 protected: | 85 protected: |
83 // BluetoothDevice override | 86 // BluetoothDevice override |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 // Note: This should remain the last member so it'll be destroyed and | 450 // Note: This should remain the last member so it'll be destroyed and |
448 // invalidate its weak pointers before any other members are destroyed. | 451 // invalidate its weak pointers before any other members are destroyed. |
449 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 452 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
450 | 453 |
451 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 454 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
452 }; | 455 }; |
453 | 456 |
454 } // namespace chromeos | 457 } // namespace chromeos |
455 | 458 |
456 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ | 459 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H_ |
OLD | NEW |