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

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

Issue 655093002: [Clean up] Introduce a BLUETOOTH_EXPORT macro to control symbol visibility outside of //device/blue… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export BluetoothUUID's PrintTo as well Created 6 years, 2 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 #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"
11 12
12 namespace device { 13 namespace device {
13 14
14 // BluetoothGattConnection represents a GATT connection to a Bluetooth device 15 // BluetoothGattConnection represents a GATT connection to a Bluetooth device
15 // that has GATT services. Instances are obtained from a BluetoothDevice, 16 // that has GATT services. Instances are obtained from a BluetoothDevice,
16 // and the connection is kept alive as long as there is at least one 17 // and the connection is kept alive as long as there is at least one
17 // active BluetoothGattConnection object. BluetoothGattConnection objects 18 // active BluetoothGattConnection object. BluetoothGattConnection objects
18 // automatically update themselves, when the connection is terminated by the 19 // automatically update themselves, when the connection is terminated by the
19 // operating system (e.g. due to user action). 20 // operating system (e.g. due to user action).
20 class BluetoothGattConnection { 21 class BLUETOOTH_EXPORT BluetoothGattConnection {
21 public: 22 public:
22 // Destructor automatically closes this GATT connection. If this is the last 23 // Destructor automatically closes this GATT connection. If this is the last
23 // remaining GATT connection and this results in a call to the OS, that call 24 // remaining GATT connection and this results in a call to the OS, that call
24 // may not always succeed. Users can make an explicit call to 25 // may not always succeed. Users can make an explicit call to
25 // BluetoothGattConnection::Close to make sure that they are notified of 26 // BluetoothGattConnection::Close to make sure that they are notified of
26 // a possible error via the callback. 27 // a possible error via the callback.
27 virtual ~BluetoothGattConnection(); 28 virtual ~BluetoothGattConnection();
28 29
29 // Returns the Bluetooth address of the device that this connection is open 30 // Returns the Bluetooth address of the device that this connection is open
30 // to. 31 // to.
(...skipping 10 matching lines...) Expand all
41 protected: 42 protected:
42 BluetoothGattConnection(); 43 BluetoothGattConnection();
43 44
44 private: 45 private:
45 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection); 46 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection);
46 }; 47 };
47 48
48 } // namespace device 49 } // namespace device
49 50
50 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_ 51 #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