OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_discovery_manager_mac.h" | 5 #include "device/bluetooth/bluetooth_discovery_manager_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 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
12 #include "base/mac/sdk_forward_declarations.h" | 12 #include "base/mac/sdk_forward_declarations.h" |
| 13 #include "base/macros.h" |
13 | 14 |
14 namespace device { | 15 namespace device { |
15 | 16 |
16 class BluetoothDiscoveryManagerMacClassic; | 17 class BluetoothDiscoveryManagerMacClassic; |
17 | 18 |
18 } // namespace device | 19 } // namespace device |
19 | 20 |
20 // IOBluetoothDeviceInquiryDelegate implementation. | 21 // IOBluetoothDeviceInquiryDelegate implementation. |
21 @interface BluetoothDeviceInquiryDelegate | 22 @interface BluetoothDeviceInquiryDelegate |
22 : NSObject<IOBluetoothDeviceInquiryDelegate> { | 23 : NSObject<IOBluetoothDeviceInquiryDelegate> { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 manager_->DeviceFound(sender, device); | 214 manager_->DeviceFound(sender, device); |
214 } | 215 } |
215 | 216 |
216 - (void)deviceInquiryComplete:(IOBluetoothDeviceInquiry*)sender | 217 - (void)deviceInquiryComplete:(IOBluetoothDeviceInquiry*)sender |
217 error:(IOReturn)error | 218 error:(IOReturn)error |
218 aborted:(BOOL)aborted { | 219 aborted:(BOOL)aborted { |
219 manager_->DeviceInquiryComplete(sender, error, aborted); | 220 manager_->DeviceInquiryComplete(sender, error, aborted); |
220 } | 221 } |
221 | 222 |
222 @end | 223 @end |
OLD | NEW |