| Index: device/bluetooth/bluetooth_device.h
|
| diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
|
| index cb1e7ec6994f4ad565b5c5d2a36e9f0d795079ac..cde34204d69e6ccde39efaa3defdb7643a935baf 100644
|
| --- a/device/bluetooth/bluetooth_device.h
|
| +++ b/device/bluetooth/bluetooth_device.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/strings/string16.h"
|
| +#include "net/base/net_log.h"
|
|
|
| namespace device {
|
|
|
| @@ -356,9 +357,12 @@ class BluetoothDevice {
|
| // identified by |profile|, on success the profile's connection callback
|
| // will be called as well as |callback|; on failure |error_callback| will be
|
| // called.
|
| - virtual void ConnectToProfile(BluetoothProfile* profile,
|
| - const base::Closure& callback,
|
| - const ErrorCallback& error_callback) = 0;
|
| + typedef base::Callback<void(const std::string&)>
|
| + ConnectToProfileErrorCallback;
|
| + virtual void ConnectToProfile(
|
| + BluetoothProfile* profile,
|
| + const base::Closure& callback,
|
| + const ConnectToProfileErrorCallback& error_callback) = 0;
|
|
|
| // Sets the Out Of Band pairing data for this device to |data|. Exactly one
|
| // of |callback| or |error_callback| will be run.
|
|
|