| 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/objc/IOBluetoothDevice.h> | 7 #import <IOBluetooth/objc/IOBluetoothDevice.h> |
| 8 #import <IOBluetooth/objc/IOBluetoothRFCOMMChannel.h> | 8 #import <IOBluetooth/objc/IOBluetoothRFCOMMChannel.h> |
| 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> | 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> |
| 10 | 10 |
| 11 #include <limits> | 11 #include <limits> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
| 18 #include "device/bluetooth/bluetooth_service_record.h" | 18 #include "device/bluetooth/bluetooth_service_record.h" |
| 19 #include "device/bluetooth/bluetooth_service_record_mac.h" | 19 #include "device/bluetooth/bluetooth_service_record_mac.h" |
| 20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
| 21 | 21 |
| 22 // Replicate specific 10.7 SDK declarations for building with prior SDKs. | 22 // Replicate specific 10.7 SDK declarations for building with prior SDKs. |
| 23 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 23 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
| 24 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 24 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
| 25 | 25 |
| 26 @interface IOBluetoothDevice (LionSDKDeclarations) | 26 @interface IOBluetoothDevice (LionSDKDeclarations) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 incoming_data_buffer_->set_offset( | 173 incoming_data_buffer_->set_offset( |
| 174 incoming_data_buffer_->offset() + data_size); | 174 incoming_data_buffer_->offset() + data_size); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void BluetoothSocketMac::ResetIncomingDataBuffer() { | 177 void BluetoothSocketMac::ResetIncomingDataBuffer() { |
| 178 incoming_data_buffer_ = new net::GrowableIOBuffer(); | 178 incoming_data_buffer_ = new net::GrowableIOBuffer(); |
| 179 incoming_data_buffer_->SetCapacity(1024); | 179 incoming_data_buffer_->SetCapacity(1024); |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace device | 182 } // namespace device |
| OLD | NEW |