Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11204)

Unified Diff: chromeos/components/tether/network_configuration_remover.h

Issue 2821103003: Remove the configuration of Tether-associated Wi-Fi networks once connectivity is lost. (Closed)
Patch Set: Rebase. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chromeos/components/tether/initializer_unittest.cc ('k') | chromeos/components/tether/network_configuration_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698