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 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
19 #include "base/single_thread_task_runner.h" | |
20 #include "base/strings/sys_string_conversions.h" | 19 #include "base/strings/sys_string_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
22 #include "base/time/time.h" | 21 #include "base/time/time.h" |
23 #include "device/bluetooth/bluetooth_device_mac.h" | 22 #include "device/bluetooth/bluetooth_device_mac.h" |
24 | 23 |
25 // Replicate specific 10.7 SDK declarations for building with prior SDKs. | 24 // Replicate specific 10.7 SDK declarations for building with prior SDKs. |
26 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 25 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
27 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 26 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
28 | 27 |
29 @interface IOBluetoothHostController (LionSDKDeclarations) | 28 @interface IOBluetoothHostController (LionSDKDeclarations) |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 iter != callback_list.end(); | 353 iter != callback_list.end(); |
355 ++iter) { | 354 ++iter) { |
356 if (success) | 355 if (success) |
357 ui_task_runner_->PostTask(FROM_HERE, iter->first); | 356 ui_task_runner_->PostTask(FROM_HERE, iter->first); |
358 else | 357 else |
359 ui_task_runner_->PostTask(FROM_HERE, iter->second); | 358 ui_task_runner_->PostTask(FROM_HERE, iter->second); |
360 } | 359 } |
361 } | 360 } |
362 | 361 |
363 } // namespace device | 362 } // namespace device |
OLD | NEW |