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

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

Issue 2821103003: Remove the configuration of Tether-associated Wi-Fi networks once connectivity is lost. (Closed)
Patch Set: 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/initializer.h
diff --git a/chromeos/components/tether/initializer.h b/chromeos/components/tether/initializer.h
index abb4e919600856ca3829727a8c876e84ed486b03..a647b94d9bfa55914424dfc0d2d12241824a4bd6 100644
--- a/chromeos/components/tether/initializer.h
+++ b/chromeos/components/tether/initializer.h
@@ -25,6 +25,7 @@ class RemoteBeaconSeedFetcher;
namespace chromeos {
+class ManagedNetworkConfigurationHandler;
class NetworkConnect;
class NetworkStateHandler;
@@ -40,6 +41,7 @@ class LocalDeviceDataProvider;
class NotificationPresenter;
class TetherConnector;
class TetherHostFetcher;
+class TetherNetworkDisconnectionHandler;
class WifiHotspotConnector;
// Initializes the Tether Chrome OS component.
@@ -52,6 +54,7 @@ class Initializer : public OAuth2TokenService::Observer {
PrefService* pref_service,
ProfileOAuth2TokenService* token_service,
NetworkStateHandler* network_state_handler,
+ ManagedNetworkConfigurationHandler* managed_network_configuration_handler,
NetworkConnect* network_connect);
// Shuts down the tether feature, destroying all internal classes. This should
@@ -65,12 +68,14 @@ class Initializer : public OAuth2TokenService::Observer {
static Initializer* instance_;
- Initializer(cryptauth::CryptAuthService* cryptauth_service,
- std::unique_ptr<NotificationPresenter> notification_presenter,
- PrefService* pref_service,
- ProfileOAuth2TokenService* token_service,
- NetworkStateHandler* network_state_handler,
- NetworkConnect* network_connect);
+ Initializer(
+ cryptauth::CryptAuthService* cryptauth_service,
+ std::unique_ptr<NotificationPresenter> notification_presenter,
+ PrefService* pref_service,
+ ProfileOAuth2TokenService* token_service,
+ NetworkStateHandler* network_state_handler,
+ ManagedNetworkConfigurationHandler* managed_network_configuration_handler,
+ NetworkConnect* network_connect);
~Initializer() override;
// OAuth2TokenService::Observer:
@@ -89,6 +94,7 @@ class Initializer : public OAuth2TokenService::Observer {
PrefService* pref_service_;
ProfileOAuth2TokenService* token_service_;
NetworkStateHandler* network_state_handler_;
+ ManagedNetworkConfigurationHandler* managed_network_configuration_handler_;
NetworkConnect* network_connect_;
// Declare new objects in the order that they will be created during
@@ -107,6 +113,8 @@ class Initializer : public OAuth2TokenService::Observer {
std::unique_ptr<DeviceIdTetherNetworkGuidMap>
device_id_tether_network_guid_map_;
std::unique_ptr<TetherConnector> tether_connector_;
+ std::unique_ptr<TetherNetworkDisconnectionHandler>
+ tether_network_disconnection_handler_;
std::unique_ptr<HostScanner> host_scanner_;
base::WeakPtrFactory<Initializer> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698