Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ | |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ | |
| 7 | |
| 8 #include "device/bluetooth/bluetooth_gatt_notify_session.h" | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/weak_ptr.h" | |
| 12 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_win.h" | |
| 13 | |
| 14 namespace device { | |
| 15 class DEVICE_BLUETOOTH_EXPORT BluetoothGattNotifySessionWin | |
| 16 : public BluetoothGattNotifySession { | |
| 17 public: | |
| 18 BluetoothGattNotifySessionWin( | |
| 19 base::WeakPtr<BluetoothRemoteGattCharacteristicWin> characteristic); | |
| 20 ~BluetoothGattNotifySessionWin() override; | |
| 21 | |
| 22 std::string GetCharacteristicIdentifier() const override; | |
|
ortuno
2016/03/15 02:55:31
// Override BluetoothGattNotifySession interfaces.
gogerald1
2016/03/15 18:28:22
Done.
| |
| 23 bool IsActive() override; | |
| 24 void Stop(const base::Closure& callback) override; | |
| 25 | |
| 26 private: | |
| 27 base::WeakPtr<BluetoothRemoteGattCharacteristicWin> characteristic_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionWin); | |
| 30 }; | |
| 31 | |
| 32 } // namespace device | |
| 33 | |
| 34 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_WIN_H_ | |
| OLD | NEW |