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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 | 100 |
101 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; | 101 typedef ScopedVector<BluetoothServiceRecordWin> ServiceRecordList; |
102 | 102 |
103 // Used by BluetoothAdapterWin to update the visible state during | 103 // Used by BluetoothAdapterWin to update the visible state during |
104 // discovery. | 104 // discovery. |
105 void SetVisible(bool visible); | 105 void SetVisible(bool visible); |
106 | 106 |
107 // Updates the services with services stored in |device_state|. | 107 // Updates the services with services stored in |device_state|. |
108 void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state); | 108 void UpdateServices(const BluetoothTaskManagerWin::DeviceState& device_state); |
109 | 109 |
110 // Check whether GATT service with |uuid| and |attribute_handle| has already | |
scheib
2016/02/09 23:24:57
Descriptive, not imperative. https://google.github
gogerald1
2016/02/10 18:00:56
Done.
| |
111 // been discovered. | |
112 bool IsGattServiceDiscovered(BluetoothUUID& uuid, uint16_t attribute_handle); | |
113 | |
114 // Check whether |service| still exist on device according to newly discovered | |
scheib
2016/02/09 23:24:57
ditto
gogerald1
2016/02/10 18:00:56
Done.
| |
115 // |service_state|. | |
116 bool IsGattServiceExist( | |
scheib
2016/02/09 23:24:57
DoesGattServiceExist
gogerald1
2016/02/10 18:00:56
Done.
| |
117 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& | |
118 service_state, | |
119 BluetoothGattService* service); | |
120 | |
121 // Updates the GATT services with the services stored in |service_state|. | |
122 void UpdateGattServices( | |
123 const ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>& | |
124 service_state); | |
125 | |
110 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; | 126 scoped_refptr<base::SequencedTaskRunner> ui_task_runner_; |
111 scoped_refptr<BluetoothSocketThread> socket_thread_; | 127 scoped_refptr<BluetoothSocketThread> socket_thread_; |
112 net::NetLog* net_log_; | 128 net::NetLog* net_log_; |
113 net::NetLog::Source net_log_source_; | 129 net::NetLog::Source net_log_source_; |
114 | 130 |
115 // The Bluetooth class of the device, a bitmask that may be decoded using | 131 // The Bluetooth class of the device, a bitmask that may be decoded using |
116 // https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm | 132 // https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm |
117 uint32_t bluetooth_class_; | 133 uint32_t bluetooth_class_; |
118 | 134 |
119 // The name of the device, as supplied by the remote device. | 135 // The name of the device, as supplied by the remote device. |
(...skipping 16 matching lines...) Expand all Loading... | |
136 | 152 |
137 // The service records retrieved from SDP. | 153 // The service records retrieved from SDP. |
138 ServiceRecordList service_record_list_; | 154 ServiceRecordList service_record_list_; |
139 | 155 |
140 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); | 156 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); |
141 }; | 157 }; |
142 | 158 |
143 } // namespace device | 159 } // namespace device |
144 | 160 |
145 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ | 161 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ |
OLD | NEW |