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

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

Issue 293063015: Bluetooth: remove Out of Band Pairing APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/hash.h" 10 #include "base/hash.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
16 #include "device/bluetooth/bluetooth_out_of_band_pairing_data.h"
17 #include "device/bluetooth/bluetooth_profile_mac.h" 16 #include "device/bluetooth/bluetooth_profile_mac.h"
18 #include "device/bluetooth/bluetooth_service_record_mac.h" 17 #include "device/bluetooth/bluetooth_service_record_mac.h"
19 #include "device/bluetooth/bluetooth_socket_mac.h" 18 #include "device/bluetooth/bluetooth_socket_mac.h"
20 #include "device/bluetooth/bluetooth_uuid.h" 19 #include "device/bluetooth/bluetooth_uuid.h"
21 20
22 // Replicate specific 10.7 SDK declarations for building with prior SDKs. 21 // Replicate specific 10.7 SDK declarations for building with prior SDKs.
23 #if !defined(MAC_OS_X_VERSION_10_7) || \ 22 #if !defined(MAC_OS_X_VERSION_10_7) || \
24 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 23 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
25 24
26 @interface IOBluetoothDevice (LionSDKDeclarations) 25 @interface IOBluetoothDevice (LionSDKDeclarations)
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 201 }
203 202
204 void BluetoothDeviceMac::ConnectToService( 203 void BluetoothDeviceMac::ConnectToService(
205 const BluetoothUUID& uuid, 204 const BluetoothUUID& uuid,
206 const ConnectToServiceCallback& callback, 205 const ConnectToServiceCallback& callback,
207 const ConnectToServiceErrorCallback& error_callback) { 206 const ConnectToServiceErrorCallback& error_callback) {
208 // TODO(keybuk): implement 207 // TODO(keybuk): implement
209 NOTIMPLEMENTED(); 208 NOTIMPLEMENTED();
210 } 209 }
211 210
212 void BluetoothDeviceMac::SetOutOfBandPairingData(
213 const BluetoothOutOfBandPairingData& data,
214 const base::Closure& callback,
215 const ErrorCallback& error_callback) {
216 NOTIMPLEMENTED();
217 }
218
219 void BluetoothDeviceMac::ClearOutOfBandPairingData(
220 const base::Closure& callback,
221 const ErrorCallback& error_callback) {
222 NOTIMPLEMENTED();
223 }
224
225 void BluetoothDeviceMac::StartConnectionMonitor( 211 void BluetoothDeviceMac::StartConnectionMonitor(
226 const base::Closure& callback, 212 const base::Closure& callback,
227 const ErrorCallback& error_callback) { 213 const ErrorCallback& error_callback) {
228 NOTIMPLEMENTED(); 214 NOTIMPLEMENTED();
229 } 215 }
230 216
231 int BluetoothDeviceMac::GetHostTransmitPower( 217 int BluetoothDeviceMac::GetHostTransmitPower(
232 BluetoothHCITransmitPowerLevelType power_level_type) const { 218 BluetoothHCITransmitPowerLevelType power_level_type) const {
233 IOBluetoothHostController* controller = 219 IOBluetoothHostController* controller =
234 [IOBluetoothHostController defaultController]; 220 [IOBluetoothHostController defaultController];
(...skipping 14 matching lines...) Expand all
249 235
250 return power_level; 236 return power_level;
251 } 237 }
252 238
253 // static 239 // static
254 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) { 240 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) {
255 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString])); 241 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString]));
256 } 242 }
257 243
258 } // namespace device 244 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698