| 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_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 7 | 7 |
| 8 #include <IOKit/IOReturn.h> | 8 #include <IOKit/IOReturn.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const ErrorCallback& error_callback) OVERRIDE; | 54 const ErrorCallback& error_callback) OVERRIDE; |
| 55 virtual bool IsDiscoverable() const OVERRIDE; | 55 virtual bool IsDiscoverable() const OVERRIDE; |
| 56 virtual void SetDiscoverable( | 56 virtual void SetDiscoverable( |
| 57 bool discoverable, | 57 bool discoverable, |
| 58 const base::Closure& callback, | 58 const base::Closure& callback, |
| 59 const ErrorCallback& error_callback) OVERRIDE; | 59 const ErrorCallback& error_callback) OVERRIDE; |
| 60 virtual bool IsDiscovering() const OVERRIDE; | 60 virtual bool IsDiscovering() const OVERRIDE; |
| 61 virtual void ReadLocalOutOfBandPairingData( | 61 virtual void ReadLocalOutOfBandPairingData( |
| 62 const BluetoothOutOfBandPairingDataCallback& callback, | 62 const BluetoothOutOfBandPairingDataCallback& callback, |
| 63 const ErrorCallback& error_callback) OVERRIDE; | 63 const ErrorCallback& error_callback) OVERRIDE; |
| 64 virtual void CreateRfcommService( |
| 65 const BluetoothUUID& uuid, |
| 66 int channel, |
| 67 bool insecure, |
| 68 const CreateServiceCallback& callback, |
| 69 const CreateServiceErrorCallback& error_callback) OVERRIDE; |
| 70 virtual void CreateL2capService( |
| 71 const BluetoothUUID& uuid, |
| 72 int psm, |
| 73 const CreateServiceCallback& callback, |
| 74 const CreateServiceErrorCallback& error_callback) OVERRIDE; |
| 64 | 75 |
| 65 // called by BluetoothAdapterMacDelegate. | 76 // called by BluetoothAdapterMacDelegate. |
| 66 void DeviceInquiryStarted(IOBluetoothDeviceInquiry* inquiry); | 77 void DeviceInquiryStarted(IOBluetoothDeviceInquiry* inquiry); |
| 67 void DeviceFound(IOBluetoothDeviceInquiry* inquiry, | 78 void DeviceFound(IOBluetoothDeviceInquiry* inquiry, |
| 68 IOBluetoothDevice* device); | 79 IOBluetoothDevice* device); |
| 69 void DeviceInquiryComplete(IOBluetoothDeviceInquiry* inquiry, | 80 void DeviceInquiryComplete(IOBluetoothDeviceInquiry* inquiry, |
| 70 IOReturn error, | 81 IOReturn error, |
| 71 bool aborted); | 82 bool aborted); |
| 72 | 83 |
| 73 protected: | 84 protected: |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ObserverList<BluetoothAdapter::Observer> observers_; | 149 ObserverList<BluetoothAdapter::Observer> observers_; |
| 139 | 150 |
| 140 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 151 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
| 141 | 152 |
| 142 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 153 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
| 143 }; | 154 }; |
| 144 | 155 |
| 145 } // namespace device | 156 } // namespace device |
| 146 | 157 |
| 147 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 158 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| OLD | NEW |