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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual void RejectPairing() OVERRIDE; | 64 virtual void RejectPairing() OVERRIDE; |
65 virtual void CancelPairing() OVERRIDE; | 65 virtual void CancelPairing() OVERRIDE; |
66 virtual void Disconnect( | 66 virtual void Disconnect( |
67 const base::Closure& callback, | 67 const base::Closure& callback, |
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 ConnectToService( | 70 virtual void ConnectToService( |
71 const device::BluetoothUUID& uuid, | 71 const device::BluetoothUUID& uuid, |
72 const ConnectToServiceCallback& callback, | 72 const ConnectToServiceCallback& callback, |
73 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; | 73 const ConnectToServiceErrorCallback& error_callback) OVERRIDE; |
| 74 virtual void CreateGattConnection( |
| 75 const GattConnectionCallback& callback, |
| 76 const ConnectErrorCallback& error_callback) OVERRIDE; |
74 virtual void StartConnectionMonitor( | 77 virtual void StartConnectionMonitor( |
75 const base::Closure& callback, | 78 const base::Closure& callback, |
76 const ErrorCallback& error_callback) OVERRIDE; | 79 const ErrorCallback& error_callback) OVERRIDE; |
77 | 80 |
78 // Creates a pairing object with the given delegate |pairing_delegate| and | 81 // Creates a pairing object with the given delegate |pairing_delegate| and |
79 // establishes it as the pairing context for this device. All pairing-related | 82 // establishes it as the pairing context for this device. All pairing-related |
80 // method calls will be forwarded to this object until it is released. | 83 // method calls will be forwarded to this object until it is released. |
81 BluetoothPairingChromeOS* BeginPairing( | 84 BluetoothPairingChromeOS* BeginPairing( |
82 BluetoothDevice::PairingDelegate* pairing_delegate); | 85 BluetoothDevice::PairingDelegate* pairing_delegate); |
83 | 86 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Note: This should remain the last member so it'll be destroyed and | 193 // Note: This should remain the last member so it'll be destroyed and |
191 // invalidate its weak pointers before any other members are destroyed. | 194 // invalidate its weak pointers before any other members are destroyed. |
192 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; | 195 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; |
193 | 196 |
194 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); | 197 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); |
195 }; | 198 }; |
196 | 199 |
197 } // namespace chromeos | 200 } // namespace chromeos |
198 | 201 |
199 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H | 202 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H |
OLD | NEW |