Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: device/bluetooth/bluetooth_socket_mac.mm

Issue 16123026: Use a direct include of strings headers in crypto/, dbus/, device/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_service_record_win_unittest.cc ('k') | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698