Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / components / proximity_auth / bluetooth_util.cc
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
3 // found in the LICENSE file.
4
5 #if !defined(OS_CHROMEOS)
6
7 #include "components/proximity_auth/bluetooth_util.h"
8
9 #include "base/callback.h"
10
11 using device::BluetoothDevice;
12
13 namespace proximity_auth {
14 namespace bluetooth_util {
15 namespace {
16 const char kApiUnavailable[] = "This API is not implemented on this platform.";
17 }  // namespace
18
19 void SeekDeviceByAddress(const std::string& device_address,
20                          const base::Closure& callback,
21                          const ErrorCallback& error_callback,
22                          base::TaskRunner* task_runner) {
23   error_callback.Run(kApiUnavailable);
24 }
25
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
35 }  // namespace proximity_auth
36
37 #endif  // !defined(OS_CHROMEOS)