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

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

Issue 13862023: Add abstract BluetoothProfile class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix error in windows file Created 7 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)]; 189 [device_ getServiceRecordForUUID:GetIOBluetoothSDPUUID(service_uuid)];
190 if (record != nil) { 190 if (record != nil) {
191 BluetoothServiceRecordMac service_record(record); 191 BluetoothServiceRecordMac service_record(record);
192 scoped_refptr<BluetoothSocket> socket( 192 scoped_refptr<BluetoothSocket> socket(
193 BluetoothSocketMac::CreateBluetoothSocket(service_record)); 193 BluetoothSocketMac::CreateBluetoothSocket(service_record));
194 if (socket.get() != NULL) 194 if (socket.get() != NULL)
195 callback.Run(socket); 195 callback.Run(socket);
196 } 196 }
197 } 197 }
198 198
199 void BluetoothDeviceMac::ConnectToProfile(
200 device::BluetoothProfile* profile,
201 const ErrorCallback& error_callback) {
202 // TODO(keybuk): implement
203 }
204
199 void BluetoothDeviceMac::SetOutOfBandPairingData( 205 void BluetoothDeviceMac::SetOutOfBandPairingData(
200 const BluetoothOutOfBandPairingData& data, 206 const BluetoothOutOfBandPairingData& data,
201 const base::Closure& callback, 207 const base::Closure& callback,
202 const ErrorCallback& error_callback) { 208 const ErrorCallback& error_callback) {
203 NOTIMPLEMENTED(); 209 NOTIMPLEMENTED();
204 } 210 }
205 211
206 void BluetoothDeviceMac::ClearOutOfBandPairingData( 212 void BluetoothDeviceMac::ClearOutOfBandPairingData(
207 const base::Closure& callback, 213 const base::Closure& callback,
208 const ErrorCallback& error_callback) { 214 const ErrorCallback& error_callback) {
209 NOTIMPLEMENTED(); 215 NOTIMPLEMENTED();
210 } 216 }
211 217
212 } // namespace device 218 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698