OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "device/bluetooth/bluetooth_device.h" | 13 #include "device/bluetooth/bluetooth_device.h" |
14 #include "device/bluetooth/bluetooth_export.h" | 14 #include "device/bluetooth/bluetooth_export.h" |
15 #include "device/bluetooth/bluetooth_task_manager_win.h" | 15 #include "device/bluetooth/bluetooth_task_manager_win.h" |
16 | 16 |
17 namespace device { | 17 namespace device { |
18 | 18 |
19 class BluetoothAdapterWin; | 19 class BluetoothAdapterWin; |
20 class BluetoothServiceRecordWin; | 20 class BluetoothServiceRecordWin; |
21 class BluetoothSocketThread; | 21 class BluetoothSocketThread; |
22 | 22 |
23 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice { | 23 class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceWin : public BluetoothDevice { |
24 public: | 24 public: |
25 explicit BluetoothDeviceWin( | 25 explicit BluetoothDeviceWin( |
| 26 BluetoothAdapterWin* adapter, |
26 const BluetoothTaskManagerWin::DeviceState& device_state, | 27 const BluetoothTaskManagerWin::DeviceState& device_state, |
27 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, | 28 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, |
28 const scoped_refptr<BluetoothSocketThread>& socket_thread, | 29 const scoped_refptr<BluetoothSocketThread>& socket_thread, |
29 net::NetLog* net_log, | 30 net::NetLog* net_log, |
30 const net::NetLog::Source& net_log_source); | 31 const net::NetLog::Source& net_log_source); |
31 ~BluetoothDeviceWin() override; | 32 ~BluetoothDeviceWin() override; |
32 | 33 |
33 // BluetoothDevice override | 34 // BluetoothDevice override |
34 uint32 GetBluetoothClass() const override; | 35 uint32 GetBluetoothClass() const override; |
35 std::string GetAddress() const override; | 36 std::string GetAddress() const override; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 130 |
130 // The service records retrieved from SDP. | 131 // The service records retrieved from SDP. |
131 ServiceRecordList service_record_list_; | 132 ServiceRecordList service_record_list_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace device | 137 } // namespace device |
137 | 138 |
138 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
OLD | NEW |