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

Unified Diff: device/bluetooth/bluetooth_profile_win.h

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full build. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_profile_chromeos_unittest.cc ('k') | device/bluetooth/bluetooth_profile_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_profile_win.h
diff --git a/device/bluetooth/bluetooth_profile_win.h b/device/bluetooth/bluetooth_profile_win.h
index b7b533393c968947730359e2c98f4da971a9dc68..e235bd2ea6f0ed7b93b28cd906a572d18e66ec07 100644
--- a/device/bluetooth/bluetooth_profile_win.h
+++ b/device/bluetooth/bluetooth_profile_win.h
@@ -9,10 +9,12 @@
#include "device/bluetooth/bluetooth_profile.h"
#include "device/bluetooth/bluetooth_uuid.h"
+#include "net/base/net_log.h"
namespace device {
class BluetoothDeviceWin;
+class BluetoothSocketThreadWin;
class BluetoothProfileWin : public BluetoothProfile {
public:
@@ -21,7 +23,15 @@ class BluetoothProfileWin : public BluetoothProfile {
virtual void SetConnectionCallback(
const ConnectionCallback& callback) OVERRIDE;
- bool Connect(const BluetoothDeviceWin* device);
+ typedef base::Callback<void(const std::string&)> ErrorCallback;
+
+ void Connect(const BluetoothDeviceWin* device,
+ scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
+ scoped_refptr<BluetoothSocketThreadWin> socket_thread,
+ net::NetLog* net_log,
+ const net::NetLog::Source& source,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback);
private:
friend BluetoothProfile;
@@ -32,6 +42,8 @@ class BluetoothProfileWin : public BluetoothProfile {
const BluetoothUUID uuid_;
const std::string name_;
ConnectionCallback connection_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(BluetoothProfileWin);
};
} // namespace device
« no previous file with comments | « device/bluetooth/bluetooth_profile_chromeos_unittest.cc ('k') | device/bluetooth/bluetooth_profile_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698