OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 6 #define COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // Builds the value to be written on |to_peripheral_char_|. The value | 215 // Builds the value to be written on |to_peripheral_char_|. The value |
216 // corresponds to |signal| concatenated with |payload|. | 216 // corresponds to |signal| concatenated with |payload|. |
217 WriteRequest BuildWriteRequest(const std::vector<uint8>& signal, | 217 WriteRequest BuildWriteRequest(const std::vector<uint8>& signal, |
218 const std::vector<uint8>& bytes, | 218 const std::vector<uint8>& bytes, |
219 bool is_last_message_for_wire_message); | 219 bool is_last_message_for_wire_message); |
220 | 220 |
221 // Clears |write_requests_queue_|. | 221 // Clears |write_requests_queue_|. |
222 void ClearWriteRequestsQueue(); | 222 void ClearWriteRequestsQueue(); |
223 | 223 |
224 // Returns the Bluetooth address of the remote device. | 224 // Returns the Bluetooth address of the remote device. |
225 const std::string& GetRemoteDeviceAddress(); | 225 std::string GetRemoteDeviceAddress(); |
226 | 226 |
227 // Returns the device corresponding to |remote_device_address_|. | 227 // Returns the device corresponding to |remote_device_address_|. |
228 device::BluetoothDevice* GetRemoteDevice(); | 228 device::BluetoothDevice* GetRemoteDevice(); |
229 | 229 |
230 // Returns the service corresponding to |remote_service_| in the current | 230 // Returns the service corresponding to |remote_service_| in the current |
231 // device. | 231 // device. |
232 device::BluetoothGattService* GetRemoteService(); | 232 device::BluetoothGattService* GetRemoteService(); |
233 | 233 |
234 // Returns the characteristic corresponding to |identifier| in the current | 234 // Returns the characteristic corresponding to |identifier| in the current |
235 // service. | 235 // service. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 base::TimeDelta delay_after_gatt_connection_; | 308 base::TimeDelta delay_after_gatt_connection_; |
309 | 309 |
310 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; | 310 base::WeakPtrFactory<BluetoothLowEnergyConnection> weak_ptr_factory_; |
311 | 311 |
312 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); | 312 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyConnection); |
313 }; | 313 }; |
314 | 314 |
315 } // namespace proximity_auth | 315 } // namespace proximity_auth |
316 | 316 |
317 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H | 317 #endif // COMPONENTS_PROXIMITY_AUTH_BLUETOOTH_LOW_ENERGY_CONNECTION_H |
OLD | NEW |