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

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

Issue 1915803002: Bluetooth class changes for implementing local GATT attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: magic values fix Created 4 years, 7 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 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_characteristic.h" 5 #include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "device/bluetooth/bluetooth_local_gatt_service.h" 8 #include "device/bluetooth/bluetooth_local_gatt_service.h"
9 9
10 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
11 #include "device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.h"
12 #endif
13
10 namespace device { 14 namespace device {
11 15
12 BluetoothLocalGattCharacteristic::BluetoothLocalGattCharacteristic() {} 16 BluetoothLocalGattCharacteristic::BluetoothLocalGattCharacteristic() {}
13 17
14 BluetoothLocalGattCharacteristic::~BluetoothLocalGattCharacteristic() {} 18 BluetoothLocalGattCharacteristic::~BluetoothLocalGattCharacteristic() {}
15 19
16 // static 20 // static
17 BluetoothLocalGattCharacteristic* BluetoothLocalGattCharacteristic::Create( 21 base::WeakPtr<BluetoothLocalGattCharacteristic>
18 const BluetoothUUID& uuid, 22 BluetoothLocalGattCharacteristic::Create(const BluetoothUUID& uuid,
19 const std::vector<uint8_t>& value, 23 Properties properties,
20 Properties properties, 24 Permissions permissions,
21 Permissions permissions, 25 BluetoothLocalGattService* service) {
22 BluetoothLocalGattService* service) { 26 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
27 return bluez::BluetoothLocalGattCharacteristicBlueZ::Create(
scheib 2016/04/26 06:03:32 Place an impl of BluetoothLocalGattCharacteristic:
rkc 2016/04/26 18:23:59 Done.
28 uuid, properties, permissions, service);
29 #else
23 NOTIMPLEMENTED(); 30 NOTIMPLEMENTED();
24 return NULL; 31 return nullptr;
32 #endif
25 } 33 }
26 34
27 } // namespace device 35 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698