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_socket_mac.h" | 5 #include "device/bluetooth/bluetooth_socket_mac.h" |
6 | 6 |
7 #import <IOBluetooth/IOBluetooth.h> | 7 #import <IOBluetooth/IOBluetooth.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
24 #include "device/bluetooth/bluetooth_adapter_mac.h" | 24 #include "device/bluetooth/bluetooth_adapter_mac.h" |
25 #include "device/bluetooth/bluetooth_channel_mac.h" | 25 #include "device/bluetooth/bluetooth_channel_mac.h" |
26 #include "device/bluetooth/bluetooth_device.h" | 26 #include "device/bluetooth/bluetooth_device.h" |
27 #include "device/bluetooth/bluetooth_device_mac.h" | 27 #include "device/bluetooth/bluetooth_device_mac.h" |
28 #include "device/bluetooth/bluetooth_l2cap_channel_mac.h" | 28 #include "device/bluetooth/bluetooth_l2cap_channel_mac.h" |
29 #include "device/bluetooth/bluetooth_rfcomm_channel_mac.h" | 29 #include "device/bluetooth/bluetooth_rfcomm_channel_mac.h" |
30 #include "net/base/io_buffer.h" | 30 #include "net/base/io_buffer.h" |
31 #include "net/base/net_errors.h" | 31 #include "net/base/net_errors.h" |
32 | 32 |
33 // Replicate specific 10.7 SDK declarations for building with prior SDKs. | |
34 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 33 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
35 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 34 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7 |
36 | 35 |
37 @interface IOBluetoothDevice (LionSDKDeclarations) | 36 @interface IOBluetoothDevice (LionSDKDeclarations) |
38 - (IOReturn)performSDPQuery:(id)target uuids:(NSArray*)uuids; | 37 - (IOReturn)performSDPQuery:(id)target uuids:(NSArray*)uuids; |
39 @end | 38 @end |
40 | 39 |
41 #endif // MAC_OS_X_VERSION_10_7 | 40 #endif // MAC_OS_X_VERSION_10_7 |
42 | 41 |
43 using device::BluetoothSocket; | 42 using device::BluetoothSocket; |
44 | 43 |
45 // A simple helper class that forwards SDP query completed notifications to its | 44 // A simple helper class that forwards SDP query completed notifications to its |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 rfcomm_connection_listener_.reset(); | 942 rfcomm_connection_listener_.reset(); |
944 l2cap_connection_listener_.reset(); | 943 l2cap_connection_listener_.reset(); |
945 | 944 |
946 // Destroying the listener above prevents the callback delegate from being | 945 // Destroying the listener above prevents the callback delegate from being |
947 // called so it is now safe to release all callback state. | 946 // called so it is now safe to release all callback state. |
948 accept_request_.reset(); | 947 accept_request_.reset(); |
949 empty_queue(accept_queue_); | 948 empty_queue(accept_queue_); |
950 } | 949 } |
951 | 950 |
952 } // namespace device | 951 } // namespace device |
OLD | NEW |