| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_REMOTE_GATT_CHARACTERISTIC_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_WIN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "device/bluetooth/bluetooth_low_energy_defs_win.h" | 13 #include "device/bluetooth/bluetooth_low_energy_defs_win.h" |
| 14 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" | 14 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" |
| 15 #include "device/bluetooth/bluetooth_remote_gatt_service.h" | 15 #include "device/bluetooth/bluetooth_remote_gatt_service.h" |
| 16 | 16 |
| 17 namespace device { | 17 namespace device { |
| 18 | 18 |
| 19 class BluetoothAdapterWin; | |
| 20 class BluetoothRemoteGattDescriptorWin; | 19 class BluetoothRemoteGattDescriptorWin; |
| 21 class BluetoothRemoteGattServiceWin; | 20 class BluetoothRemoteGattServiceWin; |
| 22 class BluetoothTaskManagerWin; | 21 class BluetoothTaskManagerWin; |
| 23 | 22 |
| 24 // The BluetoothRemoteGattCharacteristicWin class implements | 23 // The BluetoothRemoteGattCharacteristicWin class implements |
| 25 // BluetoothRemoteGattCharacteristic for remote GATT services on Windows 8 and | 24 // BluetoothRemoteGattCharacteristic for remote GATT services on Windows 8 and |
| 26 // later. | 25 // later. |
| 27 class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin | 26 class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattCharacteristicWin |
| 28 : public BluetoothRemoteGattCharacteristic { | 27 : public BluetoothRemoteGattCharacteristic { |
| 29 public: | 28 public: |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // GATT event handle returned by GattEventRegistrationCallback. | 134 // GATT event handle returned by GattEventRegistrationCallback. |
| 136 PVOID gatt_event_handle_; | 135 PVOID gatt_event_handle_; |
| 137 | 136 |
| 138 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_; | 137 base::WeakPtrFactory<BluetoothRemoteGattCharacteristicWin> weak_ptr_factory_; |
| 139 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin); | 138 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattCharacteristicWin); |
| 140 }; | 139 }; |
| 141 | 140 |
| 142 } // namespace device | 141 } // namespace device |
| 143 | 142 |
| 144 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_WIN_H_ | 143 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_CHARACTERISTIC_WIN_H_ |
| OLD | NEW |