| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ADAPTER_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/memory/scoped_vector.h" | 19 #include "base/memory/scoped_vector.h" |
| 20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "base/threading/thread_checker.h" | 21 #include "base/threading/thread_checker.h" |
| 22 #include "device/bluetooth/bluetooth_adapter.h" | 22 #include "device/bluetooth/bluetooth_adapter.h" |
| 23 #include "device/bluetooth/bluetooth_discovery_session.h" | 23 #include "device/bluetooth/bluetooth_discovery_session.h" |
| 24 #include "device/bluetooth/bluetooth_export.h" | 24 #include "device/bluetooth/bluetooth_export.h" |
| 25 #include "device/bluetooth/bluetooth_task_manager_win.h" | 25 #include "device/bluetooth/bluetooth_task_manager_win.h" |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 class SequencedTaskRunner; | 28 class SequencedTaskRunner; |
| 29 class Thread; | |
| 30 } // namespace base | 29 } // namespace base |
| 31 | 30 |
| 32 namespace device { | 31 namespace device { |
| 33 | 32 |
| 34 class BluetoothAdapterWinTest; | 33 class BluetoothAdapterWinTest; |
| 35 class BluetoothDevice; | 34 class BluetoothDevice; |
| 36 class BluetoothSocketThread; | 35 class BluetoothSocketThread; |
| 37 | 36 |
| 38 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterWin | 37 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterWin |
| 39 : public BluetoothAdapter, | 38 : public BluetoothAdapter, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // NOTE: This should remain the last member so it'll be destroyed and | 161 // NOTE: This should remain the last member so it'll be destroyed and |
| 163 // invalidate its weak pointers before any other members are destroyed. | 162 // invalidate its weak pointers before any other members are destroyed. |
| 164 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 163 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
| 165 | 164 |
| 166 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 165 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
| 167 }; | 166 }; |
| 168 | 167 |
| 169 } // namespace device | 168 } // namespace device |
| 170 | 169 |
| 171 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 170 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
| OLD | NEW |