OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |
| 6 #define CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chromeos/network/network_state_handler.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class ManagedNetworkConfigurationHandler; |
| 16 class NetworkStateHandler; |
| 17 |
| 18 namespace tether { |
| 19 |
| 20 // Handles the removal of the configuration of a Wi-Fi network. |
| 21 class NetworkConfigurationRemover { |
| 22 public: |
| 23 NetworkConfigurationRemover(NetworkStateHandler* network_state_handler, |
| 24 ManagedNetworkConfigurationHandler* |
| 25 managed_network_configuration_handler); |
| 26 virtual ~NetworkConfigurationRemover(); |
| 27 |
| 28 // Remove the network configuration of the Wi-Fi hotspot referenced by |
| 29 // |wifi_network_guid|. |
| 30 virtual void RemoveNetworkConfiguration(const std::string& wifi_network_guid); |
| 31 |
| 32 private: |
| 33 friend class NetworkConfigurationRemoverTest; |
| 34 |
| 35 NetworkStateHandler* network_state_handler_; |
| 36 ManagedNetworkConfigurationHandler* managed_network_configuration_handler_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationRemover); |
| 39 }; |
| 40 |
| 41 } // namespace tether |
| 42 |
| 43 } // namespace chromeos |
| 44 |
| 45 #endif // CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |
OLD | NEW |