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 |