| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/proximity_auth/ble/bluetooth_low_energy_weave_client_connec
tion.h" | 5 #include "components/proximity_auth/ble/bluetooth_low_energy_weave_client_connec
tion.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // The UUID of the TX characteristic used to transmit data to the server. | 33 // The UUID of the TX characteristic used to transmit data to the server. |
| 34 const char kTXCharacteristicUUID[] = "00000100-0004-1000-8000-001A11000101"; | 34 const char kTXCharacteristicUUID[] = "00000100-0004-1000-8000-001A11000101"; |
| 35 | 35 |
| 36 // The UUID of the RX characteristic used to receive data from the server. | 36 // The UUID of the RX characteristic used to receive data from the server. |
| 37 const char kRXCharacteristicUUID[] = "00000100-0004-1000-8000-001A11000102"; | 37 const char kRXCharacteristicUUID[] = "00000100-0004-1000-8000-001A11000102"; |
| 38 | 38 |
| 39 } // namespace | 39 } // namespace |
| 40 | 40 |
| 41 BluetoothLowEnergyWeaveClientConnection:: | 41 BluetoothLowEnergyWeaveClientConnection:: |
| 42 BluetoothLowEnergyWeaveClientConnection( | 42 BluetoothLowEnergyWeaveClientConnection( |
| 43 const RemoteDevice& device, | 43 const cryptauth::RemoteDevice& device, |
| 44 scoped_refptr<device::BluetoothAdapter> adapter, | 44 scoped_refptr<device::BluetoothAdapter> adapter, |
| 45 const BluetoothUUID remote_service_uuid, | 45 const BluetoothUUID remote_service_uuid, |
| 46 BluetoothThrottler* bluetooth_throttler, | 46 BluetoothThrottler* bluetooth_throttler, |
| 47 int max_number_of_write_attempts) | 47 int max_number_of_write_attempts) |
| 48 : Connection(device), | 48 : Connection(device), |
| 49 adapter_(adapter), | 49 adapter_(adapter), |
| 50 remote_service_({remote_service_uuid, ""}), | 50 remote_service_({remote_service_uuid, ""}), |
| 51 packet_generator_( | 51 packet_generator_( |
| 52 BluetoothLowEnergyWeavePacketGenerator::Factory::NewInstance()), | 52 BluetoothLowEnergyWeavePacketGenerator::Factory::NewInstance()), |
| 53 packet_receiver_( | 53 packet_receiver_( |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 number_of_failed_attempts(0) {} | 630 number_of_failed_attempts(0) {} |
| 631 | 631 |
| 632 BluetoothLowEnergyWeaveClientConnection::WriteRequest::WriteRequest( | 632 BluetoothLowEnergyWeaveClientConnection::WriteRequest::WriteRequest( |
| 633 const WriteRequest& other) = default; | 633 const WriteRequest& other) = default; |
| 634 | 634 |
| 635 BluetoothLowEnergyWeaveClientConnection::WriteRequest::~WriteRequest() {} | 635 BluetoothLowEnergyWeaveClientConnection::WriteRequest::~WriteRequest() {} |
| 636 | 636 |
| 637 } // namespace weave | 637 } // namespace weave |
| 638 | 638 |
| 639 } // namespace proximity_auth | 639 } // namespace proximity_auth |
| OLD | NEW |