| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chromeos/components/tether/ble_connection_manager.h" | 5 #include "chromeos/components/tether/ble_connection_manager.h" |
| 6 | 6 |
| 7 #include "chromeos/components/tether/ble_constants.h" | 7 #include "chromeos/components/tether/ble_constants.h" |
| 8 #include "chromeos/components/tether/timer_factory.h" | 8 #include "chromeos/components/tether/timer_factory.h" |
| 9 #include "components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.
h" | 9 #include "components/cryptauth/ble/bluetooth_low_energy_weave_client_connection.
h" |
| 10 #include "components/cryptauth/cryptauth_service.h" | 10 #include "components/cryptauth/cryptauth_service.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // If the message received was not a tether feature, ignore it. | 162 // If the message received was not a tether feature, ignore it. |
| 163 return; | 163 return; |
| 164 } | 164 } |
| 165 | 165 |
| 166 manager_->SendMessageReceivedEvent(remote_device_, payload); | 166 manager_->SendMessageReceivedEvent(remote_device_, payload); |
| 167 } | 167 } |
| 168 | 168 |
| 169 BleConnectionManager::BleConnectionManager( | 169 BleConnectionManager::BleConnectionManager( |
| 170 cryptauth::CryptAuthService* cryptauth_service, | 170 cryptauth::CryptAuthService* cryptauth_service, |
| 171 scoped_refptr<device::BluetoothAdapter> adapter, | 171 scoped_refptr<device::BluetoothAdapter> adapter, |
| 172 const LocalDeviceDataProvider* local_device_data_provider, | 172 const cryptauth::LocalDeviceDataProvider* local_device_data_provider, |
| 173 const cryptauth::RemoteBeaconSeedFetcher* remote_beacon_seed_fetcher, | 173 const cryptauth::RemoteBeaconSeedFetcher* remote_beacon_seed_fetcher, |
| 174 cryptauth::BluetoothThrottler* bluetooth_throttler) | 174 cryptauth::BluetoothThrottler* bluetooth_throttler) |
| 175 : BleConnectionManager( | 175 : BleConnectionManager( |
| 176 cryptauth_service, | 176 cryptauth_service, |
| 177 adapter, | 177 adapter, |
| 178 base::MakeUnique<BleScanner>(adapter, local_device_data_provider), | 178 base::MakeUnique<BleScanner>(adapter, local_device_data_provider), |
| 179 base::MakeUnique<BleAdvertiser>(adapter, | 179 base::MakeUnique<BleAdvertiser>(adapter, |
| 180 local_device_data_provider, | 180 local_device_data_provider, |
| 181 remote_beacon_seed_fetcher), | 181 remote_beacon_seed_fetcher), |
| 182 base::MakeUnique<BleAdvertisementDeviceQueue>(), | 182 base::MakeUnique<BleAdvertisementDeviceQueue>(), |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 << cryptauth::SecureChannel::StatusToString(new_status); | 497 << cryptauth::SecureChannel::StatusToString(new_status); |
| 498 for (auto& observer : observer_list_) { | 498 for (auto& observer : observer_list_) { |
| 499 observer.OnSecureChannelStatusChanged(remote_device, old_status, | 499 observer.OnSecureChannelStatusChanged(remote_device, old_status, |
| 500 new_status); | 500 new_status); |
| 501 } | 501 } |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // namespace tether | 504 } // namespace tether |
| 505 | 505 |
| 506 } // namespace chromeos | 506 } // namespace chromeos |
| OLD | NEW |