[CrOS Tether] Add the notion of a tether DeviceState

Desktop / Chromium - khorimoto [chromium.org] - 20 April 2017 19:19 EDT

This CL: (1) Adds a tether DeviceState to NetworkStateHandler during initialization. (2) Adds SetTetherTechnologyState() and SetTetherScanState() functions which can be called from the tether component. (3) Updates the SetTechnologyEnabled(), SetProhibitedTechnologies(), and FormattedHardwareAddressForType() functions to deal properly with the tether DeviceState. (4) Adds a new TetherDeviceStateManager class to the tether component which will handle setting the appropriate technology state. The class is mostly unimplemented for now.

BUG=672263

Review-Url: https://codereview.chromium.org/2819993002 Cr-Commit-Position: refs/heads/master@{#466185}

5df3c97 [CrOS Tether] Add the notion of a tether DeviceState.
chromeos/components/tether/BUILD.gn | 2 +
.../active_host_network_state_updater_unittest.cc | 2 +
.../components/tether/host_scanner_unittest.cc | 2 +
chromeos/components/tether/initializer.cc | 3 +
chromeos/components/tether/initializer.h | 2 +
.../components/tether/tether_connector_unittest.cc | 2 +
.../tether/tether_device_state_manager.cc | 38 +++++
.../tether/tether_device_state_manager.h | 48 +++++++
chromeos/network/device_state.h | 1 +
chromeos/network/managed_state.h | 1 +
chromeos/network/network_connect_unittest.cc | 9 ++
chromeos/network/network_connection_handler.cc | 2 +
chromeos/network/network_connection_handler.h | 3 +
chromeos/network/network_state_handler.cc | 157 +++++++++++++++++++--
chromeos/network/network_state_handler.h | 27 +++-
chromeos/network/network_state_handler_unittest.cc | 108 +++++++++++++-
chromeos/network/tether_constants.cc | 2 +
chromeos/network/tether_constants.h | 6 +
18 files changed, 398 insertions(+), 17 deletions(-)

Upstream: git.chromium.org


  • Share