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

Side by Side Diff: components/proximity_auth/bluetooth_util.cc

Issue 652403002: [Clean up] Expose ConnectToServiceInsecurely as a BluetoothDevice API on all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: Restore deps rather than public_deps Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #if !defined(OS_CHROMEOS) 5 #if !defined(OS_CHROMEOS)
6 6
7 #include "components/proximity_auth/bluetooth_util.h" 7 #include "components/proximity_auth/bluetooth_util.h"
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 10
11 using device::BluetoothDevice;
12
13 namespace proximity_auth { 11 namespace proximity_auth {
14 namespace bluetooth_util { 12 namespace bluetooth_util {
15 namespace { 13 namespace {
16 const char kApiUnavailable[] = "This API is not implemented on this platform."; 14 const char kApiUnavailable[] = "This API is not implemented on this platform.";
17 } // namespace 15 } // namespace
18 16
19 void SeekDeviceByAddress(const std::string& device_address, 17 void SeekDeviceByAddress(const std::string& device_address,
20 const base::Closure& callback, 18 const base::Closure& callback,
21 const ErrorCallback& error_callback, 19 const ErrorCallback& error_callback,
22 base::TaskRunner* task_runner) { 20 base::TaskRunner* task_runner) {
23 error_callback.Run(kApiUnavailable); 21 error_callback.Run(kApiUnavailable);
24 } 22 }
25 23
26 void ConnectToServiceInsecurely(
27 BluetoothDevice* device,
28 const device::BluetoothUUID& uuid,
29 const BluetoothDevice::ConnectToServiceCallback& callback,
30 const BluetoothDevice::ConnectToServiceErrorCallback& error_callback) {
31 error_callback.Run(kApiUnavailable);
32 }
33
34 } // namespace bluetooth_util 24 } // namespace bluetooth_util
35 } // namespace proximity_auth 25 } // namespace proximity_auth
36 26
37 #endif // !defined(OS_CHROMEOS) 27 #endif // !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « components/proximity_auth/bluetooth_util.h ('k') | components/proximity_auth/bluetooth_util_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698