| Index: device/bluetooth/bluetooth_device_win.h
|
| diff --git a/device/bluetooth/bluetooth_device_win.h b/device/bluetooth/bluetooth_device_win.h
|
| index aa262bd48d445cf434855092c202a92c11b8b08d..8479fbe6b94f28e01182270f2f2dc675aaad2033 100644
|
| --- a/device/bluetooth/bluetooth_device_win.h
|
| +++ b/device/bluetooth/bluetooth_device_win.h
|
| @@ -22,9 +22,9 @@ class BluetoothSocketThread;
|
| class BluetoothDeviceWin : public BluetoothDevice {
|
| public:
|
| explicit BluetoothDeviceWin(
|
| - const BluetoothTaskManagerWin::DeviceState& state,
|
| - scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
|
| - scoped_refptr<BluetoothSocketThread> socket_thread,
|
| + const BluetoothTaskManagerWin::DeviceState& device_state,
|
| + const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
|
| + const scoped_refptr<BluetoothSocketThread>& socket_thread,
|
| net::NetLog* net_log,
|
| const net::NetLog::Source& net_log_source);
|
| virtual ~BluetoothDeviceWin();
|
| @@ -76,6 +76,14 @@ class BluetoothDeviceWin : public BluetoothDevice {
|
| const BluetoothServiceRecordWin* GetServiceRecord(
|
| const device::BluetoothUUID& uuid) const;
|
|
|
| + // Returns true if all fields and services of this instance are equal to the
|
| + // fields and services stored in |device_state|.
|
| + bool IsEqual(const BluetoothTaskManagerWin::DeviceState& device_state);
|
| +
|
| + // Updates this instance with all fields and properties stored in
|
| + // |device_state|.
|
| + void Update(const BluetoothTaskManagerWin::DeviceState& device_state);
|
| +
|
| protected:
|
| // BluetoothDevice override
|
| virtual std::string GetDeviceName() const OVERRIDE;
|
| @@ -87,6 +95,9 @@ class BluetoothDeviceWin : public BluetoothDevice {
|
| // discovery.
|
| void SetVisible(bool visible);
|
|
|
| + // Updates the services with services stored in |device_state|.
|
| + void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state);
|
| +
|
| scoped_refptr<base::SequencedTaskRunner> ui_task_runner_;
|
| scoped_refptr<BluetoothSocketThread> socket_thread_;
|
| net::NetLog* net_log_;
|
|
|