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_ADAPTER_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual bool IsDiscoverable() const OVERRIDE; | 59 virtual bool IsDiscoverable() const OVERRIDE; |
60 virtual void SetDiscoverable( | 60 virtual void SetDiscoverable( |
61 bool discoverable, | 61 bool discoverable, |
62 const base::Closure& callback, | 62 const base::Closure& callback, |
63 const ErrorCallback& error_callback) OVERRIDE; | 63 const ErrorCallback& error_callback) OVERRIDE; |
64 virtual bool IsDiscovering() const OVERRIDE; | 64 virtual bool IsDiscovering() const OVERRIDE; |
65 virtual void ReadLocalOutOfBandPairingData( | 65 virtual void ReadLocalOutOfBandPairingData( |
66 const device::BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& | 66 const device::BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& |
67 callback, | 67 callback, |
68 const ErrorCallback& error_callback) OVERRIDE; | 68 const ErrorCallback& error_callback) OVERRIDE; |
| 69 virtual void CreateRfcommService( |
| 70 const device::BluetoothUUID& uuid, |
| 71 int channel, |
| 72 bool insecure, |
| 73 const CreateServiceCallback& callback, |
| 74 const CreateServiceErrorCallback& error_callback) OVERRIDE; |
| 75 virtual void CreateL2capService( |
| 76 const device::BluetoothUUID& uuid, |
| 77 int psm, |
| 78 const CreateServiceCallback& callback, |
| 79 const CreateServiceErrorCallback& error_callback) OVERRIDE; |
69 | 80 |
70 protected: | 81 protected: |
71 // BluetoothAdapter: | 82 // BluetoothAdapter: |
72 virtual void RemovePairingDelegateInternal( | 83 virtual void RemovePairingDelegateInternal( |
73 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; | 84 device::BluetoothDevice::PairingDelegate* pairing_delegate) OVERRIDE; |
74 | 85 |
75 private: | 86 private: |
76 friend class BluetoothChromeOSTest; | 87 friend class BluetoothChromeOSTest; |
77 friend class BluetoothDeviceChromeOS; | 88 friend class BluetoothDeviceChromeOS; |
78 friend class BluetoothProfileChromeOS; | 89 friend class BluetoothProfileChromeOS; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Note: This should remain the last member so it'll be destroyed and | 253 // Note: This should remain the last member so it'll be destroyed and |
243 // invalidate its weak pointers before any other members are destroyed. | 254 // invalidate its weak pointers before any other members are destroyed. |
244 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 255 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
245 | 256 |
246 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 257 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
247 }; | 258 }; |
248 | 259 |
249 } // namespace chromeos | 260 } // namespace chromeos |
250 | 261 |
251 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 262 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
OLD | NEW |