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_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_BLUEZ_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_BLUEZ_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 "base/macros.h" |
12 #include "device/bluetooth/bluetooth_gatt_notify_session.h" | 12 #include "device/bluetooth/bluetooth_gatt_notify_session.h" |
13 #include "device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h" | 13 #include "device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h" |
14 | 14 |
15 namespace device { | 15 namespace device { |
16 | 16 |
17 class BluetoothAdapter; | 17 class BluetoothAdapter; |
18 | 18 |
19 } // namespace device | 19 } // namespace device |
20 | 20 |
21 namespace bluez { | 21 namespace bluez { |
22 | 22 |
23 class BluetoothRemoteGattCharacteristicBlueZ; | 23 class BluetoothRemoteGattCharacteristicBlueZ; |
24 | 24 |
25 // BluetoothGattNotifySessionBlueZ implements | 25 // BluetoothGattNotifySessionBlueZ implements |
26 // BluetoothGattNotifySession for the Chrome OS platform. | 26 // BluetoothGattNotifySession for platforms that use BlueZ. |
27 class BluetoothGattNotifySessionBlueZ | 27 class BluetoothGattNotifySessionBlueZ |
28 : public device::BluetoothGattNotifySession, | 28 : public device::BluetoothGattNotifySession, |
29 public bluez::BluetoothGattCharacteristicClient::Observer { | 29 public bluez::BluetoothGattCharacteristicClient::Observer { |
30 public: | 30 public: |
31 ~BluetoothGattNotifySessionBlueZ() override; | 31 ~BluetoothGattNotifySessionBlueZ() override; |
32 | 32 |
33 // BluetoothGattNotifySession overrides. | 33 // BluetoothGattNotifySession overrides. |
34 std::string GetCharacteristicIdentifier() const override; | 34 std::string GetCharacteristicIdentifier() const override; |
35 bool IsActive() override; | 35 bool IsActive() override; |
36 void Stop(const base::Closure& callback) override; | 36 void Stop(const base::Closure& callback) override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // D-Bus object path of the associated characteristic. This is used to filter | 69 // D-Bus object path of the associated characteristic. This is used to filter |
70 // observer events. | 70 // observer events. |
71 dbus::ObjectPath object_path_; | 71 dbus::ObjectPath object_path_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionBlueZ); | 73 DISALLOW_COPY_AND_ASSIGN(BluetoothGattNotifySessionBlueZ); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace bluez | 76 } // namespace bluez |
77 | 77 |
78 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_BLUEZ_H_ | 78 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_NOTIFY_SESSION_BLUEZ_H_ |
OLD | NEW |