| 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_adapter_mac.h" | 5 #include "device/bluetooth/bluetooth_adapter_mac.h" |
| 6 | 6 |
| 7 #import <IOBluetooth/objc/IOBluetoothDevice.h> | 7 #import <IOBluetooth/objc/IOBluetoothDevice.h> |
| 8 #import <IOBluetooth/objc/IOBluetoothDeviceInquiry.h> | 8 #import <IOBluetooth/objc/IOBluetoothDeviceInquiry.h> |
| 9 #import <IOBluetooth/objc/IOBluetoothHostController.h> | 9 #import <IOBluetooth/objc/IOBluetoothHostController.h> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const base::Closure& callback, | 168 const base::Closure& callback, |
| 169 const ErrorCallback& error_callback) { | 169 const ErrorCallback& error_callback) { |
| 170 NOTIMPLEMENTED(); | 170 NOTIMPLEMENTED(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 bool BluetoothAdapterMac::IsDiscovering() const { | 173 bool BluetoothAdapterMac::IsDiscovering() const { |
| 174 return discovery_status_ == DISCOVERING || | 174 return discovery_status_ == DISCOVERING || |
| 175 discovery_status_ == DISCOVERY_STOPPING; | 175 discovery_status_ == DISCOVERY_STOPPING; |
| 176 } | 176 } |
| 177 | 177 |
| 178 void BluetoothAdapterMac::ReadLocalOutOfBandPairingData( | |
| 179 const BluetoothOutOfBandPairingDataCallback& callback, | |
| 180 const ErrorCallback& error_callback) { | |
| 181 } | |
| 182 | |
| 183 void BluetoothAdapterMac::CreateRfcommService( | 178 void BluetoothAdapterMac::CreateRfcommService( |
| 184 const BluetoothUUID& uuid, | 179 const BluetoothUUID& uuid, |
| 185 int channel, | 180 int channel, |
| 186 bool insecure, | 181 bool insecure, |
| 187 const CreateServiceCallback& callback, | 182 const CreateServiceCallback& callback, |
| 188 const CreateServiceErrorCallback& error_callback) { | 183 const CreateServiceErrorCallback& error_callback) { |
| 189 // TODO(keybuk): implement. | 184 // TODO(keybuk): implement. |
| 190 NOTIMPLEMENTED(); | 185 NOTIMPLEMENTED(); |
| 191 } | 186 } |
| 192 | 187 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 iter != callback_list.end(); | 374 iter != callback_list.end(); |
| 380 ++iter) { | 375 ++iter) { |
| 381 if (success) | 376 if (success) |
| 382 ui_task_runner_->PostTask(FROM_HERE, iter->first); | 377 ui_task_runner_->PostTask(FROM_HERE, iter->first); |
| 383 else | 378 else |
| 384 ui_task_runner_->PostTask(FROM_HERE, iter->second); | 379 ui_task_runner_->PostTask(FROM_HERE, iter->second); |
| 385 } | 380 } |
| 386 } | 381 } |
| 387 | 382 |
| 388 } // namespace device | 383 } // namespace device |
| OLD | NEW |