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

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..51e048c51117cb5747ddff4d324076b728852864
--- /dev/null
+++ b/chromeos/components/tether/network_configuration_remover.h
@@ -0,0 +1,43 @@
+// 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();
+
+ virtual void RemoveNetworkConfiguration(const std::string& wifi_network_guid);
stevenjb 2017/04/21 20:15:28 Document this
Ryan Hansberry 2017/04/24 17:56:20 Done.
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698