| 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_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNECTI
ON_H_ | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNECTI
ON_H_ |
| 6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNECTI
ON_H_ | 6 #define COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNECTI
ON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 WAITING_CONNECTION_RESPONSE, | 81 WAITING_CONNECTION_RESPONSE, |
| 82 CONNECTED, | 82 CONNECTED, |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 // Constructs a Bluetooth low energy connection to the service with | 85 // Constructs a Bluetooth low energy connection to the service with |
| 86 // |remote_service_| on the |remote_device|. The |adapter| must be already | 86 // |remote_service_| on the |remote_device|. The |adapter| must be already |
| 87 // initialized and ready. The GATT connection may alreaady be established and | 87 // initialized and ready. The GATT connection may alreaady be established and |
| 88 // pass through |gatt_connection|. A subsequent call to Connect() must be | 88 // pass through |gatt_connection|. A subsequent call to Connect() must be |
| 89 // made. | 89 // made. |
| 90 BluetoothLowEnergyWeaveClientConnection( | 90 BluetoothLowEnergyWeaveClientConnection( |
| 91 const RemoteDevice& remote_device, | 91 const cryptauth::RemoteDevice& remote_device, |
| 92 scoped_refptr<device::BluetoothAdapter> adapter, | 92 scoped_refptr<device::BluetoothAdapter> adapter, |
| 93 const device::BluetoothUUID remote_service_uuid, | 93 const device::BluetoothUUID remote_service_uuid, |
| 94 BluetoothThrottler* bluetooth_throttler, | 94 BluetoothThrottler* bluetooth_throttler, |
| 95 int max_number_of_write_attempts); | 95 int max_number_of_write_attempts); |
| 96 | 96 |
| 97 ~BluetoothLowEnergyWeaveClientConnection() override; | 97 ~BluetoothLowEnergyWeaveClientConnection() override; |
| 98 | 98 |
| 99 // proximity_auth::Connection: | 99 // proximity_auth::Connection: |
| 100 void Connect() override; | 100 void Connect() override; |
| 101 void Disconnect() override; | 101 void Disconnect() override; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 weak_ptr_factory_; | 307 weak_ptr_factory_; |
| 308 | 308 |
| 309 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyWeaveClientConnection); | 309 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyWeaveClientConnection); |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 } // namespace weave | 312 } // namespace weave |
| 313 | 313 |
| 314 } // namespace proximity_auth | 314 } // namespace proximity_auth |
| 315 | 315 |
| 316 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNE
CTION_H_ | 316 #endif // COMPONENTS_PROXIMITY_AUTH_BLE_BLUETOOTH_LOW_ENERGY_WEAVE_CLIENT_CONNE
CTION_H_ |
| OLD | NEW |