summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_task_manager_win.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 17:38:35 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 17:38:35 +0000
commitb4a971600cb13a7691fe5654e283ccab0f8dda33 (patch)
tree36167597b1d9ab3993f7d98ac31ae2bcf56285ef /device/bluetooth/bluetooth_task_manager_win.h
parent50e9dcf831492784c434b95c56808402c6de6295 (diff)
downloadchromium_src-b4a971600cb13a7691fe5654e283ccab0f8dda33.zip
chromium_src-b4a971600cb13a7691fe5654e283ccab0f8dda33.tar.gz
chromium_src-b4a971600cb13a7691fe5654e283ccab0f8dda33.tar.bz2
Revert 178311 - it broke the Linux sizes bot because of the new static initializer added to bluetooth_adapter_factory.cc.
> We cannot run adapter callbacks inside BluetoothAdapterWin because passing scoped_refptr<BluetoothAdapter>(this) will destroy the adapter itself after the callback is finished. > > Instead, bluetooth_adapter_factory.cc maintains a vector of callbacks and they will be run once the adapter is initialized. > > I also put Bluetooth API initialization code into bluetooth_init_win.h and bluetooth_init_win.cc. From now on any code that wants to use Windows Bluetooth APIs should just include bluetooth_init_win.h. > > BUG=135470 > > Review URL: https://chromiumcodereview.appspot.com/12018024 TBR=youngki@chromium.org Review URL: https://codereview.chromium.org/12035055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_task_manager_win.h')
-rw-r--r--device/bluetooth/bluetooth_task_manager_win.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_task_manager_win.h b/device/bluetooth/bluetooth_task_manager_win.h
index 1f2e1d6..93f50cf 100644
--- a/device/bluetooth/bluetooth_task_manager_win.h
+++ b/device/bluetooth/bluetooth_task_manager_win.h
@@ -65,6 +65,11 @@ class BluetoothTaskManagerWin
friend class base::RefCountedThreadSafe<BluetoothTaskManagerWin>;
friend class BluetoothTaskManagerWinTest;
+ // Returns true if the machine has a bluetooth stack available. The first call
+ // to this function will involve file IO, so it should be done on an
+ // appropriate thread. This function is not threadsafe.
+ static bool HasBluetoothStack();
+
static const int kPollIntervalMs;
// Constructor to pass |ui_task_runner_| and |bluetooth_task_runner_| for