Index: chromeos/components/tether/network_configuration_remover.h |
diff --git a/chromeos/components/tether/network_configuration_remover.h b/chromeos/components/tether/network_configuration_remover.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..996279ee522e83d9279039e2d702ae2ed7470dd6 |
--- /dev/null |
+++ b/chromeos/components/tether/network_configuration_remover.h |
@@ -0,0 +1,45 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |
+#define CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |
+ |
+#include <string> |
+ |
+#include "base/macros.h" |
+#include "chromeos/network/network_state_handler.h" |
+ |
+namespace chromeos { |
+ |
+class ManagedNetworkConfigurationHandler; |
+class NetworkStateHandler; |
+ |
+namespace tether { |
+ |
+// Handles the removal of the configuration of a Wi-Fi network. |
+class NetworkConfigurationRemover { |
+ public: |
+ NetworkConfigurationRemover(NetworkStateHandler* network_state_handler, |
+ ManagedNetworkConfigurationHandler* |
+ managed_network_configuration_handler); |
+ virtual ~NetworkConfigurationRemover(); |
+ |
+ // Remove the network configuration of the Wi-Fi hotspot referenced by |
+ // |wifi_network_guid|. |
+ virtual void RemoveNetworkConfiguration(const std::string& wifi_network_guid); |
+ |
+ private: |
+ friend class NetworkConfigurationRemoverTest; |
+ |
+ NetworkStateHandler* network_state_handler_; |
+ ManagedNetworkConfigurationHandler* managed_network_configuration_handler_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationRemover); |
+}; |
+ |
+} // namespace tether |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROMEOS_COMPONENTS_TETHER_NETWORK_CONFIGURATION_REMOVER_H_ |