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

Side by Side Diff: trunk/src/device/bluetooth/bluetooth_device_mac.mm

Issue 224763003: Revert 261566 "device/bluetooth: Rename device::bluetooth_utils:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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_device_mac.h" 5 #include "device/bluetooth/bluetooth_device_mac.h"
6 6
7 #include <IOBluetooth/Bluetooth.h> 7 #include <IOBluetooth/Bluetooth.h>
8 #import <IOBluetooth/objc/IOBluetoothDevice.h> 8 #import <IOBluetooth/objc/IOBluetoothDevice.h>
9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h>
10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> 10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 const base::Closure& callback, 172 const base::Closure& callback,
173 const ErrorCallback& error_callback) { 173 const ErrorCallback& error_callback) {
174 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
175 } 175 }
176 176
177 void BluetoothDeviceMac::Forget(const ErrorCallback& error_callback) { 177 void BluetoothDeviceMac::Forget(const ErrorCallback& error_callback) {
178 NOTIMPLEMENTED(); 178 NOTIMPLEMENTED();
179 } 179 }
180 180
181 void BluetoothDeviceMac::ConnectToService( 181 void BluetoothDeviceMac::ConnectToService(
182 const device::BluetoothUUID& service_uuid, 182 const std::string& service_uuid,
183 const SocketCallback& callback) { 183 const SocketCallback& callback) {
184 IOBluetoothSDPServiceRecord* record = 184 IOBluetoothSDPServiceRecord* record =
185 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID( 185 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)];
186 service_uuid.canonical_value())];
187 if (record != nil) { 186 if (record != nil) {
188 BluetoothServiceRecordMac service_record(record); 187 BluetoothServiceRecordMac service_record(record);
189 scoped_refptr<BluetoothSocket> socket( 188 scoped_refptr<BluetoothSocket> socket(
190 BluetoothSocketMac::CreateBluetoothSocket(service_record)); 189 BluetoothSocketMac::CreateBluetoothSocket(service_record));
191 if (socket.get() != NULL) 190 if (socket.get() != NULL)
192 callback.Run(socket); 191 callback.Run(socket);
193 } 192 }
194 } 193 }
195 194
196 void BluetoothDeviceMac::ConnectToProfile( 195 void BluetoothDeviceMac::ConnectToProfile(
(...skipping 13 matching lines...) Expand all
210 NOTIMPLEMENTED(); 209 NOTIMPLEMENTED();
211 } 210 }
212 211
213 void BluetoothDeviceMac::ClearOutOfBandPairingData( 212 void BluetoothDeviceMac::ClearOutOfBandPairingData(
214 const base::Closure& callback, 213 const base::Closure& callback,
215 const ErrorCallback& error_callback) { 214 const ErrorCallback& error_callback) {
216 NOTIMPLEMENTED(); 215 NOTIMPLEMENTED();
217 } 216 }
218 217
219 } // namespace device 218 } // namespace device
OLDNEW
« no previous file with comments | « trunk/src/device/bluetooth/bluetooth_device_mac.h ('k') | trunk/src/device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698