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_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 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 const ErrorCallback& error_callback) OVERRIDE; | 68 const ErrorCallback& error_callback) OVERRIDE; |
69 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 69 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
70 virtual void ConnectToProfile( | 70 virtual void ConnectToProfile( |
71 device::BluetoothProfile* profile, | 71 device::BluetoothProfile* profile, |
72 const base::Closure& callback, | 72 const base::Closure& callback, |
73 const ConnectToProfileErrorCallback& error_callback) OVERRIDE; | 73 const ConnectToProfileErrorCallback& error_callback) OVERRIDE; |
74 virtual void ConnectToService( | 74 virtual void ConnectToService( |
75 const device::BluetoothUUID& uuid, | 75 const device::BluetoothUUID& uuid, |
76 const ConnectToServiceCallback& callback, | 76 const ConnectToServiceCallback& callback, |
77 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; | 77 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; |
78 virtual void SetOutOfBandPairingData( | |
79 const device::BluetoothOutOfBandPairingData& data, | |
80 const base::Closure& callback, | |
81 const ErrorCallback& error_callback) OVERRIDE; | |
82 virtual void ClearOutOfBandPairingData( | |
83 const base::Closure& callback, | |
84 const ErrorCallback& error_callback) OVERRIDE; | |
85 virtual void StartConnectionMonitor( | 78 virtual void StartConnectionMonitor( |
86 const base::Closure& callback, | 79 const base::Closure& callback, |
87 const ErrorCallback& error_callback) OVERRIDE; | 80 const ErrorCallback& error_callback) OVERRIDE; |
88 | 81 |
89 // Creates a pairing object with the given delegate |pairing_delegate| and | 82 // Creates a pairing object with the given delegate |pairing_delegate| and |
90 // establishes it as the pairing context for this device. All pairing-related | 83 // establishes it as the pairing context for this device. All pairing-related |
91 // method calls will be forwarded to this object until it is released. | 84 // method calls will be forwarded to this object until it is released. |
92 BluetoothPairingChromeOS* BeginPairing( | 85 BluetoothPairingChromeOS* BeginPairing( |
93 BluetoothDevice::PairingDelegate* pairing_delegate); | 86 BluetoothDevice::PairingDelegate* pairing_delegate); |
94 | 87 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Note: This should remain the last member so it'll be destroyed and | 194 // Note: This should remain the last member so it'll be destroyed and |
202 // invalidate its weak pointers before any other members are destroyed. | 195 // invalidate its weak pointers before any other members are destroyed. |
203 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 196 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
204 | 197 |
205 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 198 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
206 }; | 199 }; |
207 | 200 |
208 } // namespace chromeos | 201 } // namespace chromeos |
209 | 202 |
210 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 203 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
OLD | NEW |