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 #include "device/bluetooth/bluetooth_device_mac.h" | 5 #include "device/bluetooth/bluetooth_device_mac.h" |
6 | 6 |
7 #include <IOBluetooth/Bluetooth.h> | 7 #include <IOBluetooth/Bluetooth.h> |
8 #import <IOBluetooth/objc/IOBluetoothDevice.h> | 8 #import <IOBluetooth/objc/IOBluetoothDevice.h> |
9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> | 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> |
10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> | 10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)]; | 189 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)]; |
190 if (record != nil) { | 190 if (record != nil) { |
191 BluetoothServiceRecordMac service_record(record); | 191 BluetoothServiceRecordMac service_record(record); |
192 scoped_refptr<BluetoothSocket> socket( | 192 scoped_refptr<BluetoothSocket> socket( |
193 BluetoothSocketMac::CreateBluetoothSocket(service_record)); | 193 BluetoothSocketMac::CreateBluetoothSocket(service_record)); |
194 if (socket.get() != NULL) | 194 if (socket.get() != NULL) |
195 callback.Run(socket); | 195 callback.Run(socket); |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
| 199 void BluetoothDeviceMac::ConnectToProfile( |
| 200 device::BluetoothProfile* profile, |
| 201 const ErrorCallback& error_callback) { |
| 202 // TODO(keybuk): implement |
| 203 } |
| 204 |
199 void BluetoothDeviceMac::SetOutOfBandPairingData( | 205 void BluetoothDeviceMac::SetOutOfBandPairingData( |
200 const BluetoothOutOfBandPairingData& data, | 206 const BluetoothOutOfBandPairingData& data, |
201 const base::Closure& callback, | 207 const base::Closure& callback, |
202 const ErrorCallback& error_callback) { | 208 const ErrorCallback& error_callback) { |
203 NOTIMPLEMENTED(); | 209 NOTIMPLEMENTED(); |
204 } | 210 } |
205 | 211 |
206 void BluetoothDeviceMac::ClearOutOfBandPairingData( | 212 void BluetoothDeviceMac::ClearOutOfBandPairingData( |
207 const base::Closure& callback, | 213 const base::Closure& callback, |
208 const ErrorCallback& error_callback) { | 214 const ErrorCallback& error_callback) { |
209 NOTIMPLEMENTED(); | 215 NOTIMPLEMENTED(); |
210 } | 216 } |
211 | 217 |
212 } // namespace device | 218 } // namespace device |
OLD | NEW |