| 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_NOTIFY_SESSION_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_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 // A BluetoothGattNotifySession represents an active session for listening | 16 // A BluetoothGattNotifySession represents an active session for listening |
| 16 // to value updates from GATT characteristics that support notifications and/or | 17 // to value updates from GATT characteristics that support notifications and/or |
| 17 // indications. Instances are obtained by calling | 18 // indications. Instances are obtained by calling |
| 18 // BluetoothGattCharacteristic::StartNotifySession. | 19 // BluetoothGattCharacteristic::StartNotifySession. |
| 19 class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySession { | 20 class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySession { |
| 20 public: | 21 public: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 protected: | 37 protected: |
| 37 BluetoothGattNotifySession(); | 38 BluetoothGattNotifySession(); |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySession); | 41 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySession); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace device | 44 } // namespace device |
| 44 | 45 |
| 45 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_H_ | 46 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_H_ |
| OLD | NEW |