OLD | NEW |
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 #include "device/bluetooth/bluetooth_gatt_descriptor.h" | 5 #include "device/bluetooth/bluetooth_gatt_descriptor.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
11 #include "base/macros.h" | 13 #include "base/macros.h" |
12 | 14 |
13 namespace device { | 15 namespace device { |
14 namespace { | 16 namespace { |
15 | 17 |
16 struct UUIDs { | 18 struct UUIDs { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 76 |
75 BluetoothGattDescriptor::BluetoothGattDescriptor() { | 77 BluetoothGattDescriptor::BluetoothGattDescriptor() { |
76 } | 78 } |
77 | 79 |
78 BluetoothGattDescriptor::~BluetoothGattDescriptor() { | 80 BluetoothGattDescriptor::~BluetoothGattDescriptor() { |
79 } | 81 } |
80 | 82 |
81 // static | 83 // static |
82 BluetoothGattDescriptor* BluetoothGattDescriptor::Create( | 84 BluetoothGattDescriptor* BluetoothGattDescriptor::Create( |
83 const BluetoothUUID& uuid, | 85 const BluetoothUUID& uuid, |
84 const std::vector<uint8>& value, | 86 const std::vector<uint8_t>& value, |
85 BluetoothGattCharacteristic::Permissions permissions) { | 87 BluetoothGattCharacteristic::Permissions permissions) { |
86 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " | 88 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not " |
87 << "supported."; | 89 << "supported."; |
88 return NULL; | 90 return NULL; |
89 } | 91 } |
90 | 92 |
91 } // namespace device | 93 } // namespace device |
OLD | NEW |