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

Unified Diff: device/bluetooth/bluetooth_manager_win.h

Issue 11411130: Implemented BluetoothTaskManagerWin class. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed unnecessary lines. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_manager_win.h
diff --git a/device/bluetooth/bluetooth_manager_win.h b/device/bluetooth/bluetooth_manager_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8fde8883664eee7ef5ca05d3b7c17661e4c79c5
--- /dev/null
+++ b/device/bluetooth/bluetooth_manager_win.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_
+
+#include "base/threading/thread.h"
+
+namespace device {
+
+class BluetoothAdapterWin;
+
+// A thread dedicated to perform blocking bluetooth APIs on Windows.
+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.
+ public:
+ BluetoothManagerWin();
+ virtual ~BluetoothManagerWin();
+
+ // Finds the bluetooth adapter and creates a handle for it. Then it returns
+ // the handle to the main thread through weak_ptr.
+ void FindAdapterHandleAndReply(base::WeakPtr<BluetoothAdapterWin> weak_ptr);
+
+ private:
+ virtual HANDLE FindAdapterHandle();
+ DISALLOW_COPY_AND_ASSIGN(BluetoothManagerWin);
+};
+
+} // namespace device
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_MANAGER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698