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

Side by Side Diff: device/bluetooth/bluetooth_gatt_descriptor.cc

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #include "device/bluetooth/bluetooth_gatt_descriptor.h" 5 #include "device/bluetooth/bluetooth_gatt_descriptor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8
9 #include <vector> 8 #include <vector>
10 9
11 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
12 #include "base/logging.h"
13 #include "base/macros.h"
14 11
15 namespace device { 12 namespace device {
16 namespace { 13 namespace {
17 14
18 struct UUIDs { 15 struct UUIDs {
19 UUIDs() : uuids_(MakeUUIDVector()) {} 16 UUIDs() : uuids_(MakeUUIDVector()) {}
20 17
21 const std::vector<BluetoothUUID> uuids_; 18 const std::vector<BluetoothUUID> uuids_;
22 19
23 private: 20 private:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 BluetoothGattDescriptor::CharacteristicAggregateFormatUuid() { 70 BluetoothGattDescriptor::CharacteristicAggregateFormatUuid() {
74 return g_uuids.Get().uuids_[5]; 71 return g_uuids.Get().uuids_[5];
75 } 72 }
76 73
77 BluetoothGattDescriptor::BluetoothGattDescriptor() { 74 BluetoothGattDescriptor::BluetoothGattDescriptor() {
78 } 75 }
79 76
80 BluetoothGattDescriptor::~BluetoothGattDescriptor() { 77 BluetoothGattDescriptor::~BluetoothGattDescriptor() {
81 } 78 }
82 79
83 // static
84 BluetoothGattDescriptor* BluetoothGattDescriptor::Create(
85 const BluetoothUUID& uuid,
86 const std::vector<uint8_t>& value,
87 BluetoothGattCharacteristic::Permissions permissions) {
88 LOG(ERROR) << "Creating local GATT characteristic descriptors currently not "
89 << "supported.";
90 return NULL;
91 }
92
93 } // namespace device 80 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_descriptor.h ('k') | device/bluetooth/bluetooth_gatt_descriptor_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698