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 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // |device_state|. | 85 // |device_state|. |
86 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); | 86 void Update(const BluetoothTaskManagerWin::DeviceState& device_state); |
87 | 87 |
88 protected: | 88 protected: |
89 // BluetoothDevice override | 89 // BluetoothDevice override |
90 virtual std::string GetDeviceName() const override; | 90 virtual std::string GetDeviceName() const override; |
91 | 91 |
92 private: | 92 private: |
93 friend class BluetoothAdapterWin; | 93 friend class BluetoothAdapterWin; |
94 | 94 |
| 95 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; |
| 96 |
95 // Used by BluetoothAdapterWin to update the visible state during | 97 // Used by BluetoothAdapterWin to update the visible state during |
96 // discovery. | 98 // discovery. |
97 void SetVisible(bool visible); | 99 void SetVisible(bool visible); |
98 | 100 |
99 // Updates the services with services stored in |device_state|. | 101 // Updates the services with services stored in |device_state|. |
100 void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state); | 102 void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state); |
101 | 103 |
102 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 104 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
103 scoped_refptr<BluetoothSocketThread> socket_thread_; | 105 scoped_refptr<BluetoothSocketThread> socket_thread_; |
104 net::NetLog* net_log_; | 106 net::NetLog* net_log_; |
(...skipping 15 matching lines...) Expand all Loading... |
120 bool connected_; | 122 bool connected_; |
121 | 123 |
122 // Used to send change notifications when a device disappears during | 124 // Used to send change notifications when a device disappears during |
123 // discovery. | 125 // discovery. |
124 bool visible_; | 126 bool visible_; |
125 | 127 |
126 // The services (identified by UUIDs) that this device provides. | 128 // The services (identified by UUIDs) that this device provides. |
127 UUIDList uuids_; | 129 UUIDList uuids_; |
128 | 130 |
129 // The service records retrieved from SDP. | 131 // The service records retrieved from SDP. |
130 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; | |
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 |