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

Side by Side Diff: device/bluetooth/bluetooth_gatt_characteristic.h

Issue 778443002: bluetooth: Make device/bluetooth a shared library component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Set DelayLoadDLL settings on shared library as well Created 6 years 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
« no previous file with comments | « device/bluetooth/bluetooth_export.h ('k') | device/bluetooth/bluetooth_gatt_connection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "device/bluetooth/bluetooth_export.h"
14 #include "device/bluetooth/bluetooth_gatt_service.h" 15 #include "device/bluetooth/bluetooth_gatt_service.h"
15 #include "device/bluetooth/bluetooth_uuid.h" 16 #include "device/bluetooth/bluetooth_uuid.h"
16 17
17 namespace device { 18 namespace device {
18 19
19 class BluetoothGattDescriptor; 20 class BluetoothGattDescriptor;
20 class BluetoothGattNotifySession; 21 class BluetoothGattNotifySession;
21 22
22 // BluetoothGattCharacteristic represents a local or remote GATT characteristic. 23 // BluetoothGattCharacteristic represents a local or remote GATT characteristic.
23 // A GATT characteristic is a basic data element used to construct a GATT 24 // A GATT characteristic is a basic data element used to construct a GATT
24 // service. Hence, instances of a BluetoothGattCharacteristic are associated 25 // service. Hence, instances of a BluetoothGattCharacteristic are associated
25 // with a BluetoothGattService. There are two ways in which this class is used: 26 // with a BluetoothGattService. There are two ways in which this class is used:
26 // 27 //
27 // 1. To represent GATT characteristics that belong to a service hosted by a 28 // 1. To represent GATT characteristics that belong to a service hosted by a
28 // remote device. In this case the characteristic will be constructed by 29 // remote device. In this case the characteristic will be constructed by
29 // the subsystem. 30 // the subsystem.
30 // 2. To represent GATT characteristics that belong to a locally hosted 31 // 2. To represent GATT characteristics that belong to a locally hosted
31 // service. To achieve this, users can construct instances of 32 // service. To achieve this, users can construct instances of
32 // BluetoothGattCharacteristic directly and add it to the desired 33 // BluetoothGattCharacteristic directly and add it to the desired
33 // BluetoothGattService instance that represents a local service. 34 // BluetoothGattService instance that represents a local service.
34 class BluetoothGattCharacteristic { 35 class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic {
35 public: 36 public:
36 // Values representing the possible properties of a characteristic, which 37 // Values representing the possible properties of a characteristic, which
37 // define how the characteristic can be used. Each of these properties serve 38 // define how the characteristic can be used. Each of these properties serve
38 // a role as defined in the Bluetooth Specification. 39 // a role as defined in the Bluetooth Specification.
39 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present, 40 // |PROPERTY_EXTENDED_PROPERTIES| is a special property that, if present,
40 // indicates that there is a characteristic descriptor (namely the 41 // indicates that there is a characteristic descriptor (namely the
41 // "Characteristic Extended Properties Descriptor" with UUID 0x2900) that 42 // "Characteristic Extended Properties Descriptor" with UUID 0x2900) that
42 // contains additional properties pertaining to the characteristic. 43 // contains additional properties pertaining to the characteristic.
43 // The properties "ReliableWrite| and |WriteAuxiliaries| are retrieved from 44 // The properties "ReliableWrite| and |WriteAuxiliaries| are retrieved from
44 // that characteristic. 45 // that characteristic.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 BluetoothGattCharacteristic(); 203 BluetoothGattCharacteristic();
203 virtual ~BluetoothGattCharacteristic(); 204 virtual ~BluetoothGattCharacteristic();
204 205
205 private: 206 private:
206 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic); 207 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristic);
207 }; 208 };
208 209
209 } // namespace device 210 } // namespace device
210 211
211 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_ 212 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CHARACTERISTIC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_export.h ('k') | device/bluetooth/bluetooth_gatt_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698