| 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/tether_connector.h" | 5 #include "chromeos/components/tether/tether_connector.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chromeos/components/tether/active_host.h" | 8 #include "chromeos/components/tether/active_host.h" |
| 9 #include "chromeos/components/tether/device_id_tether_network_guid_map.h" | 9 #include "chromeos/components/tether/device_id_tether_network_guid_map.h" |
| 10 #include "chromeos/components/tether/tether_host_fetcher.h" | 10 #include "chromeos/components/tether/tether_host_fetcher.h" |
| 11 #include "chromeos/components/tether/wifi_hotspot_connector.h" | 11 #include "chromeos/components/tether/wifi_hotspot_connector.h" |
| 12 #include "chromeos/network/network_handler.h" | 12 #include "chromeos/network/network_handler.h" |
| 13 #include "chromeos/network/network_state_handler.h" | 13 #include "chromeos/network/network_state_handler.h" |
| 14 #include "components/proximity_auth/logging/logging.h" | 14 #include "components/proximity_auth/logging/logging.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 namespace tether { | 18 namespace tether { |
| 19 | 19 |
| 20 TetherConnector::TetherConnector( | 20 TetherConnector::TetherConnector( |
| 21 WifiHotspotConnector* wifi_hotspot_connector, | |
| 22 ActiveHost* active_host, | |
| 23 TetherHostFetcher* tether_host_fetcher, | |
| 24 BleConnectionManager* connection_manager, | |
| 25 HostScanDevicePrioritizer* host_scan_device_prioritizer, | |
| 26 DeviceIdTetherNetworkGuidMap* device_id_tether_network_guid_map) | |
| 27 : TetherConnector(NetworkConnect::Get(), | |
| 28 NetworkHandler::Get()->network_state_handler(), | |
| 29 wifi_hotspot_connector, | |
| 30 active_host, | |
| 31 tether_host_fetcher, | |
| 32 connection_manager, | |
| 33 host_scan_device_prioritizer, | |
| 34 device_id_tether_network_guid_map) {} | |
| 35 | |
| 36 TetherConnector::TetherConnector( | |
| 37 NetworkConnect* network_connect, | 21 NetworkConnect* network_connect, |
| 38 NetworkStateHandler* network_state_handler, | 22 NetworkStateHandler* network_state_handler, |
| 39 WifiHotspotConnector* wifi_hotspot_connector, | 23 WifiHotspotConnector* wifi_hotspot_connector, |
| 40 ActiveHost* active_host, | 24 ActiveHost* active_host, |
| 41 TetherHostFetcher* tether_host_fetcher, | 25 TetherHostFetcher* tether_host_fetcher, |
| 42 BleConnectionManager* connection_manager, | 26 BleConnectionManager* connection_manager, |
| 43 HostScanDevicePrioritizer* host_scan_device_prioritizer, | 27 HostScanDevicePrioritizer* host_scan_device_prioritizer, |
| 44 DeviceIdTetherNetworkGuidMap* device_id_tether_network_guid_map) | 28 DeviceIdTetherNetworkGuidMap* device_id_tether_network_guid_map) |
| 45 : network_connect_(network_connect), | 29 : network_connect_(network_connect), |
| 46 network_state_handler_(network_state_handler), | 30 network_state_handler_(network_state_handler), |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 << device_id << "\" to Wi-Fi network with ID \"" | 222 << device_id << "\" to Wi-Fi network with ID \"" |
| 239 << wifi_network_guid << "\"."; | 223 << wifi_network_guid << "\"."; |
| 240 } | 224 } |
| 241 | 225 |
| 242 SetConnected(device_id, wifi_network_guid); | 226 SetConnected(device_id, wifi_network_guid); |
| 243 } | 227 } |
| 244 | 228 |
| 245 } // namespace tether | 229 } // namespace tether |
| 246 | 230 |
| 247 } // namespace chromeos | 231 } // namespace chromeos |
| OLD | NEW |