| OLD | NEW |
| 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 "base/macros.h" |
| 11 #include "device/bluetooth/bluetooth_export.h" | 12 #include "device/bluetooth/bluetooth_export.h" |
| 12 | 13 |
| 13 namespace device { | 14 namespace device { |
| 14 | 15 |
| 15 class BluetoothAdapter; | 16 class BluetoothAdapter; |
| 16 class BluetoothDevice; | 17 class BluetoothDevice; |
| 17 | 18 |
| 18 // BluetoothGattConnection represents a GATT connection to a Bluetooth device | 19 // BluetoothGattConnection represents a GATT connection to a Bluetooth device |
| 19 // that has GATT services. Instances are obtained from a BluetoothDevice, | 20 // that has GATT services. Instances are obtained from a BluetoothDevice, |
| 20 // and the connection is kept alive as long as there is at least one | 21 // and the connection is kept alive as long as there is at least one |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 bool owns_reference_for_connection_ = false; | 67 bool owns_reference_for_connection_ = false; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection); | 69 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnection); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace device | 72 } // namespace device |
| 72 | 73 |
| 73 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_ | 74 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_H_ |
| OLD | NEW |