OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_local_gatt_descriptor.h" | 5 #include "device/bluetooth/bluetooth_local_gatt_descriptor.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace device { | 9 namespace device { |
10 | 10 |
| 11 #if !defined(OS_CHROMEOS) && !defined(OS_LINUX) |
| 12 // static |
| 13 base::WeakPtr<BluetoothLocalGattDescriptor> |
| 14 BluetoothLocalGattDescriptor::Create( |
| 15 const BluetoothUUID& uuid, |
| 16 BluetoothGattCharacteristic::Permissions permissions, |
| 17 BluetoothLocalGattCharacteristic* characteristic) { |
| 18 NOTIMPLEMENTED(); |
| 19 return nullptr; |
| 20 } |
| 21 #endif |
| 22 |
11 BluetoothLocalGattDescriptor::BluetoothLocalGattDescriptor() {} | 23 BluetoothLocalGattDescriptor::BluetoothLocalGattDescriptor() {} |
12 | 24 |
13 BluetoothLocalGattDescriptor::~BluetoothLocalGattDescriptor() {} | 25 BluetoothLocalGattDescriptor::~BluetoothLocalGattDescriptor() {} |
14 | 26 |
15 // static | |
16 BluetoothLocalGattDescriptor* BluetoothLocalGattDescriptor::Create( | |
17 const BluetoothUUID& uuid, | |
18 const std::vector<uint8_t>& value, | |
19 BluetoothGattCharacteristic::Permissions permissions, | |
20 BluetoothLocalGattCharacteristic* characteristic) { | |
21 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " | |
22 << "supported."; | |
23 return NULL; | |
24 } | |
25 | |
26 } // namespace device | 27 } // namespace device |
OLD | NEW |