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_CLASSIC_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_ |
7 | 7 |
8 #include "base/win/scoped_handle.h" | 8 #include "base/win/scoped_handle.h" |
9 #include "device/bluetooth/bluetooth_export.h" | 9 #include "device/bluetooth/bluetooth_export.h" |
10 #include "device/bluetooth/bluetooth_init_win.h" | 10 #include "device/bluetooth/bluetooth_init_win.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
29 virtual BOOL FindRadioClose(HBLUETOOTH_RADIO_FIND handle); | 29 virtual BOOL FindRadioClose(HBLUETOOTH_RADIO_FIND handle); |
30 virtual BOOL IsConnectable(HANDLE handle); | 30 virtual BOOL IsConnectable(HANDLE handle); |
31 virtual HBLUETOOTH_DEVICE_FIND FindFirstDevice( | 31 virtual HBLUETOOTH_DEVICE_FIND FindFirstDevice( |
32 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params, | 32 const BLUETOOTH_DEVICE_SEARCH_PARAMS* params, |
33 BLUETOOTH_DEVICE_INFO* out_device_info); | 33 BLUETOOTH_DEVICE_INFO* out_device_info); |
34 virtual BOOL FindNextDevice(HBLUETOOTH_DEVICE_FIND handle, | 34 virtual BOOL FindNextDevice(HBLUETOOTH_DEVICE_FIND handle, |
35 BLUETOOTH_DEVICE_INFO* out_device_info); | 35 BLUETOOTH_DEVICE_INFO* out_device_info); |
36 virtual BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle); | 36 virtual BOOL FindDeviceClose(HBLUETOOTH_DEVICE_FIND handle); |
37 virtual BOOL EnableDiscovery(HANDLE handle, BOOL is_enable); | 37 virtual BOOL EnableDiscovery(HANDLE handle, BOOL is_enable); |
38 virtual BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable); | 38 virtual BOOL EnableIncomingConnections(HANDLE handle, BOOL is_enable); |
39 | 39 |
scheib
2016/02/07 02:24:07
Any reason for the blank line between previous met
gogerald1
2016/02/08 19:23:50
Because the system implementation of GetLastError
| |
40 virtual DWORD LastError(); | |
41 | |
40 protected: | 42 protected: |
41 BluetoothClassicWrapper(); | 43 BluetoothClassicWrapper(); |
42 virtual ~BluetoothClassicWrapper(); | 44 virtual ~BluetoothClassicWrapper(); |
43 | 45 |
44 private: | 46 private: |
45 base::win::ScopedHandle opened_radio_handle_; | 47 base::win::ScopedHandle opened_radio_handle_; |
46 }; | 48 }; |
47 | 49 |
48 } // namespace win | 50 } // namespace win |
49 } // namespace device | 51 } // namespace device |
50 | 52 |
51 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_ | 53 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_WIN_H_ |
OLD | NEW |