diff options
Diffstat (limited to 'connection_manager_interface.h')
-rw-r--r-- | connection_manager_interface.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/connection_manager_interface.h b/connection_manager_interface.h index cb60a3cb..d36ef761 100644 --- a/connection_manager_interface.h +++ b/connection_manager_interface.h @@ -19,23 +19,9 @@ #include <base/macros.h> -namespace chromeos_update_engine { - -enum class NetworkConnectionType { - kEthernet, - kWifi, - kWimax, - kBluetooth, - kCellular, - kUnknown -}; +#include "update_engine/connection_utils.h" -enum class NetworkTethering { - kNotDetected, - kSuspected, - kConfirmed, - kUnknown -}; +namespace chromeos_update_engine { // This class exposes a generic interface to the connection manager // (e.g FlimFlam, Shill, etc.) to consolidate all connection-related @@ -47,14 +33,14 @@ class ConnectionManagerInterface { // Populates |out_type| with the type of the network connection // that we are currently connected and |out_tethering| with the estimate of // whether that network is being tethered. - virtual bool GetConnectionProperties(NetworkConnectionType* out_type, - NetworkTethering* out_tethering) = 0; + virtual bool GetConnectionProperties(ConnectionType* out_type, + ConnectionTethering* out_tethering) = 0; // Returns true if we're allowed to update the system when we're // connected to the internet through the given network connection type and the // given tethering state. - virtual bool IsUpdateAllowedOver(NetworkConnectionType type, - NetworkTethering tethering) const = 0; + virtual bool IsUpdateAllowedOver(ConnectionType type, + ConnectionTethering tethering) const = 0; protected: ConnectionManagerInterface() = default; |