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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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