| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/callback.h" | 15 #include "base/callback.h" |
| 16 #include "base/callback_helpers.h" | 16 #include "base/callback_helpers.h" |
| 17 #include "base/mac/scoped_cftyperef.h" | 17 #include "base/mac/scoped_cftyperef.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/numerics/safe_conversions.h" | 19 #include "base/numerics/safe_conversions.h" |
| 20 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 21 #include "base/strings/string_number_conversions.h" | |
| 22 #include "base/strings/sys_string_conversions.h" | 22 #include "base/strings/sys_string_conversions.h" |
| 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" |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 rfcomm_connection_listener_.reset(); | 942 rfcomm_connection_listener_.reset(); |
| 943 l2cap_connection_listener_.reset(); | 943 l2cap_connection_listener_.reset(); |
| 944 | 944 |
| 945 // Destroying the listener above prevents the callback delegate from being | 945 // Destroying the listener above prevents the callback delegate from being |
| 946 // called so it is now safe to release all callback state. | 946 // called so it is now safe to release all callback state. |
| 947 accept_request_.reset(); | 947 accept_request_.reset(); |
| 948 empty_queue(accept_queue_); | 948 empty_queue(accept_queue_); |
| 949 } | 949 } |
| 950 | 950 |
| 951 } // namespace device | 951 } // namespace device |
| OLD | NEW |