OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_EXPERIMENTAL_CHROMEOS_H | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void ConfirmPairing() OVERRIDE; | 51 virtual void ConfirmPairing() OVERRIDE; |
52 virtual void RejectPairing() OVERRIDE; | 52 virtual void RejectPairing() OVERRIDE; |
53 virtual void CancelPairing() OVERRIDE; | 53 virtual void CancelPairing() OVERRIDE; |
54 virtual void Disconnect( | 54 virtual void Disconnect( |
55 const base::Closure& callback, | 55 const base::Closure& callback, |
56 const ErrorCallback& error_callback) OVERRIDE; | 56 const ErrorCallback& error_callback) OVERRIDE; |
57 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; | 57 virtual void Forget(const ErrorCallback& error_callback) OVERRIDE; |
58 virtual void ConnectToService( | 58 virtual void ConnectToService( |
59 const std::string& service_uuid, | 59 const std::string& service_uuid, |
60 const SocketCallback& callback) OVERRIDE; | 60 const SocketCallback& callback) OVERRIDE; |
| 61 virtual void ConnectToProfile( |
| 62 device::BluetoothProfile* profile, |
| 63 const ErrorCallback& error_callback) OVERRIDE; |
61 virtual void SetOutOfBandPairingData( | 64 virtual void SetOutOfBandPairingData( |
62 const device::BluetoothOutOfBandPairingData& data, | 65 const device::BluetoothOutOfBandPairingData& data, |
63 const base::Closure& callback, | 66 const base::Closure& callback, |
64 const ErrorCallback& error_callback) OVERRIDE; | 67 const ErrorCallback& error_callback) OVERRIDE; |
65 virtual void ClearOutOfBandPairingData( | 68 virtual void ClearOutOfBandPairingData( |
66 const base::Closure& callback, | 69 const base::Closure& callback, |
67 const ErrorCallback& error_callback) OVERRIDE; | 70 const ErrorCallback& error_callback) OVERRIDE; |
68 | 71 |
69 protected: | 72 protected: |
70 // BluetoothDevice override | 73 // BluetoothDevice override |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // Note: This should remain the last member so it'll be destroyed and | 198 // Note: This should remain the last member so it'll be destroyed and |
196 // invalidate its weak pointers before any other members are destroyed. | 199 // invalidate its weak pointers before any other members are destroyed. |
197 base::WeakPtrFactory<BluetoothDeviceExperimentalChromeOS> weak_ptr_factory_; | 200 base::WeakPtrFactory<BluetoothDeviceExperimentalChromeOS> weak_ptr_factory_; |
198 | 201 |
199 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceExperimentalChromeOS); | 202 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceExperimentalChromeOS); |
200 }; | 203 }; |
201 | 204 |
202 } // namespace chromeos | 205 } // namespace chromeos |
203 | 206 |
204 #endif /* DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H */ | 207 #endif /* DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_EXPERIMENTAL_CHROMEOS_H */ |
OLD | NEW |