blob: 405dd235281e6695a43dda052ef9ab57f3288c5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if !defined(OS_CHROMEOS)
#include "components/proximity_auth/bluetooth_util.h"
#include "base/callback.h"
using device::BluetoothDevice;
namespace proximity_auth {
namespace bluetooth_util {
namespace {
const char kApiUnavailable[] = "This API is not implemented on this platform.";
} // namespace
void SeekDeviceByAddress(const std::string& device_address,
const base::Closure& callback,
const ErrorCallback& error_callback,
base::TaskRunner* task_runner) {
error_callback.Run(kApiUnavailable);
}
void ConnectToServiceInsecurely(
BluetoothDevice* device,
const device::BluetoothUUID& uuid,
const BluetoothDevice::ConnectToServiceCallback& callback,
const BluetoothDevice::ConnectToServiceErrorCallback& error_callback) {
error_callback.Run(kApiUnavailable);
}
} // namespace bluetooth_util
} // namespace proximity_auth
#endif // !defined(OS_CHROMEOS)
|