| 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_helpers.h" | 15 #include "base/callback_helpers.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/strings/sys_string_conversions.h" | 19 #include "base/strings/sys_string_conversions.h" |
| 20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
| 21 #include "device/bluetooth/bluetooth_device_mac.h" | 21 #include "device/bluetooth/bluetooth_device_mac.h" |
| 22 #include "device/bluetooth/bluetooth_service_record.h" | |
| 23 #include "device/bluetooth/bluetooth_service_record_mac.h" | |
| 24 #include "net/base/io_buffer.h" | 22 #include "net/base/io_buffer.h" |
| 25 | 23 |
| 26 @interface BluetoothRFCOMMChannelDelegate | 24 @interface BluetoothRFCOMMChannelDelegate |
| 27 : NSObject <IOBluetoothRFCOMMChannelDelegate> { | 25 : NSObject <IOBluetoothRFCOMMChannelDelegate> { |
| 28 @private | 26 @private |
| 29 device::BluetoothSocketMac* socket_; // weak | 27 device::BluetoothSocketMac* socket_; // weak |
| 30 } | 28 } |
| 31 | 29 |
| 32 - (id)initWithSocket:(device::BluetoothSocketMac*)socket; | 30 - (id)initWithSocket:(device::BluetoothSocketMac*)socket; |
| 33 | 31 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 ReleaseChannel(); | 406 ReleaseChannel(); |
| 409 } | 407 } |
| 410 | 408 |
| 411 void BluetoothSocketMac::Accept( | 409 void BluetoothSocketMac::Accept( |
| 412 const AcceptCompletionCallback& success_callback, | 410 const AcceptCompletionCallback& success_callback, |
| 413 const ErrorCompletionCallback& error_callback) { | 411 const ErrorCompletionCallback& error_callback) { |
| 414 NOTIMPLEMENTED(); | 412 NOTIMPLEMENTED(); |
| 415 } | 413 } |
| 416 | 414 |
| 417 } // namespace device | 415 } // namespace device |
| OLD | NEW |