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

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

Issue 748873004: Revert of bluetooth: Make device/bluetooth a shared library component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: 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
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_CONNECTION_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "device/bluetooth/bluetooth_export.h"
12 11
13 namespace device { 12 namespace device {
14 13
15 // BluetoothGattConnection represents a GATT connection to a Bluetooth device 14 // BluetoothGattConnection represents a GATT connection to a Bluetooth device
16 // that has GATT services. Instances are obtained from a BluetoothDevice, 15 // that has GATT services. Instances are obtained from a BluetoothDevice,
17 // and the connection is kept alive as long as there is at least one 16 // and the connection is kept alive as long as there is at least one
18 // active BluetoothGattConnection object. BluetoothGattConnection objects 17 // active BluetoothGattConnection object. BluetoothGattConnection objects
19 // automatically update themselves, when the connection is terminated by the 18 // automatically update themselves, when the connection is terminated by the
20 // operating system (e.g. due to user action). 19 // operating system (e.g. due to user action).
21 class DEVICE_BLUETOOTH_EXPORT BluetoothGattConnection { 20 class BluetoothGattConnection {
22 public: 21 public:
23 // Destructor automatically closes this GATT connection. If this is the last 22 // Destructor automatically closes this GATT connection. If this is the last
24 // remaining GATT connection and this results in a call to the OS, that call 23 // remaining GATT connection and this results in a call to the OS, that call
25 // may not always succeed. Users can make an explicit call to 24 // may not always succeed. Users can make an explicit call to
26 // BluetoothGattConnection::Close to make sure that they are notified of 25 // BluetoothGattConnection::Close to make sure that they are notified of
27 // a possible error via the callback. 26 // a possible error via the callback.
28 virtual ~BluetoothGattConnection(); 27 virtual ~BluetoothGattConnection();
29 28
30 // Returns the Bluetooth address of the device that this connection is open 29 // Returns the Bluetooth address of the device that this connection is open
31 // to. 30 // to.
(...skipping 10 matching lines...) Expand all
42 protected: 41 protected:
43 BluetoothGattConnection(); 42 BluetoothGattConnection();
44 43
45 private: 44 private:
46 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection); 45 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection);
47 }; 46 };
48 47
49 } // namespace device 48 } // namespace device
50 49
51 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_ 50 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_gatt_characteristic.h ('k') | device/bluetooth/bluetooth_gatt_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698