OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_ | |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_ | |
7 | |
8 #include "base/threading/thread.h" | |
9 | |
10 namespace device { | |
11 | |
12 class BluetoothAdapterWin; | |
13 | |
14 // A thread dedicated to perform blocking bluetooth APIs on Windows. | |
15 class BluetoothManagerWin : public base::Thread { | |
bryeung
2012/11/22 18:13:25
maybe something more descriptive like "BluetoothPo
youngki
2012/11/23 01:50:47
Done.
| |
16 public: | |
17 BluetoothManagerWin(); | |
18 virtual ~BluetoothManagerWin(); | |
19 | |
20 // Finds the bluetooth adapter and creates a handle for it. Then it returns | |
21 // the handle to the main thread through weak_ptr. | |
22 void FindAdapterHandleAndReply(base::WeakPtr<BluetoothAdapterWin> weak_ptr); | |
23 | |
24 private: | |
25 virtual HANDLE FindAdapterHandle(); | |
26 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerWin); | |
27 }; | |
28 | |
29 } // namespace device | |
30 | |
31 #endif // DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_ | |
OLD | NEW |