Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: device/bluetooth/bluetooth_init_win.h

Issue 12018024: Implemented Asynchronous Initialization of BluetoothAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Turned adapter_callbacks to a lazy instance. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_includes_win.h ('k') | device/bluetooth/bluetooth_init_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_INCLUDES_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_INCLUDES_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
7 7
8 // windows.h needs to be included before BluetoothAPIs.h. 8 // windows.h needs to be included before BluetoothAPIs.h.
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include <BluetoothAPIs.h> 11 #include <BluetoothAPIs.h>
12 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700 12 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700
13 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h. 13 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h.
14 #undef FACILITY_VISUALCPP 14 #undef FACILITY_VISUALCPP
15 #endif 15 #endif
16 #include <delayimp.h> 16 #include <delayimp.h>
17 17
18 #pragma comment(lib, "Bthprops.lib") 18 #pragma comment(lib, "Bthprops.lib")
19 19
20 #endif // DEVICE_BLUETOOTH_BLUETOOTH_INCLUDES_WIN_H_ 20 namespace device {
21 namespace bluetooth_init_win {
22
23 // Returns true if the machine has a bluetooth stack available. The first call
24 // to this function will involve file IO, so it should be done on an appropriate
25 // thread. This function is not threadsafe.
26 bool HasBluetoothStack();
27
28 } // namespace bluetooth_init_win
29 } // namespace device
30
31 #endif // DEVICE_BLUETOOTH_BLUETOOTH_INIT_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_includes_win.h ('k') | device/bluetooth/bluetooth_init_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698