| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ | 5 #ifndef CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ |
| 6 #define CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ | 6 #define CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class TetherConnector; | 49 class TetherConnector; |
| 50 class TetherDisconnector; | 50 class TetherDisconnector; |
| 51 class TetherHostFetcher; | 51 class TetherHostFetcher; |
| 52 class TetherHostResponseRecorder; | 52 class TetherHostResponseRecorder; |
| 53 class TetherNetworkDisconnectionHandler; | 53 class TetherNetworkDisconnectionHandler; |
| 54 class WifiHotspotConnector; | 54 class WifiHotspotConnector; |
| 55 | 55 |
| 56 // Initializes the Tether Chrome OS component. | 56 // Initializes the Tether Chrome OS component. |
| 57 class Initializer : public OAuth2TokenService::Observer { | 57 class Initializer : public OAuth2TokenService::Observer { |
| 58 public: | 58 public: |
| 59 // Initializes the tether feature. | 59 // Initializes the tether feature. If the feature has already been |
| 60 // initialized, this function is a no-op. |
| 60 static void Init( | 61 static void Init( |
| 61 cryptauth::CryptAuthService* cryptauth_service, | 62 cryptauth::CryptAuthService* cryptauth_service, |
| 62 std::unique_ptr<NotificationPresenter> notification_presenter, | 63 std::unique_ptr<NotificationPresenter> notification_presenter, |
| 63 PrefService* pref_service, | 64 PrefService* pref_service, |
| 64 ProfileOAuth2TokenService* token_service, | 65 ProfileOAuth2TokenService* token_service, |
| 65 NetworkStateHandler* network_state_handler, | 66 NetworkStateHandler* network_state_handler, |
| 66 ManagedNetworkConfigurationHandler* managed_network_configuration_handler, | 67 ManagedNetworkConfigurationHandler* managed_network_configuration_handler, |
| 67 NetworkConnect* network_connect, | 68 NetworkConnect* network_connect, |
| 68 NetworkConnectionHandler* network_connection_handler); | 69 NetworkConnectionHandler* network_connection_handler); |
| 69 | 70 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 base::WeakPtrFactory<Initializer> weak_ptr_factory_; | 143 base::WeakPtrFactory<Initializer> weak_ptr_factory_; |
| 143 | 144 |
| 144 DISALLOW_COPY_AND_ASSIGN(Initializer); | 145 DISALLOW_COPY_AND_ASSIGN(Initializer); |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 } // namespace tether | 148 } // namespace tether |
| 148 | 149 |
| 149 } // namespace chromeos | 150 } // namespace chromeos |
| 150 | 151 |
| 151 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ | 152 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ |
| OLD | NEW |