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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/time/default_clock.h" | 14 #include "base/time/default_clock.h" |
15 #include "components/prefs/pref_registry_simple.h" | 15 #include "components/prefs/pref_registry_simple.h" |
16 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 16 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
17 #include "device/bluetooth/bluetooth_adapter.h" | 17 #include "device/bluetooth/bluetooth_adapter.h" |
18 #include "device/bluetooth/bluetooth_advertisement.h" | 18 #include "device/bluetooth/bluetooth_advertisement.h" |
19 | 19 |
20 class PrefService; | 20 class PrefService; |
21 | 21 |
22 namespace cryptauth { | 22 namespace cryptauth { |
23 class CryptAuthService; | 23 class CryptAuthService; |
| 24 class LocalDeviceDataProvider; |
24 class RemoteBeaconSeedFetcher; | 25 class RemoteBeaconSeedFetcher; |
25 } | 26 } |
26 | 27 |
27 namespace chromeos { | 28 namespace chromeos { |
28 | 29 |
29 class ManagedNetworkConfigurationHandler; | 30 class ManagedNetworkConfigurationHandler; |
30 class NetworkConnect; | 31 class NetworkConnect; |
31 class NetworkConnectionHandler; | 32 class NetworkConnectionHandler; |
32 class NetworkStateHandler; | 33 class NetworkStateHandler; |
33 | 34 |
34 namespace tether { | 35 namespace tether { |
35 | 36 |
36 class ActiveHost; | 37 class ActiveHost; |
37 class ActiveHostNetworkStateUpdater; | 38 class ActiveHostNetworkStateUpdater; |
38 class BleConnectionManager; | 39 class BleConnectionManager; |
39 class NetworkConnectionHandlerTetherDelegate; | 40 class NetworkConnectionHandlerTetherDelegate; |
40 class DeviceIdTetherNetworkGuidMap; | 41 class DeviceIdTetherNetworkGuidMap; |
41 class HostScanCache; | 42 class HostScanCache; |
42 class HostScanner; | 43 class HostScanner; |
43 class HostScanScheduler; | 44 class HostScanScheduler; |
44 class HostScanDevicePrioritizerImpl; | 45 class HostScanDevicePrioritizerImpl; |
45 class KeepAliveScheduler; | 46 class KeepAliveScheduler; |
46 class LocalDeviceDataProvider; | |
47 class NetworkConfigurationRemover; | 47 class NetworkConfigurationRemover; |
48 class NotificationPresenter; | 48 class NotificationPresenter; |
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. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ProfileOAuth2TokenService* token_service_; | 106 ProfileOAuth2TokenService* token_service_; |
107 NetworkStateHandler* network_state_handler_; | 107 NetworkStateHandler* network_state_handler_; |
108 ManagedNetworkConfigurationHandler* managed_network_configuration_handler_; | 108 ManagedNetworkConfigurationHandler* managed_network_configuration_handler_; |
109 NetworkConnect* network_connect_; | 109 NetworkConnect* network_connect_; |
110 NetworkConnectionHandler* network_connection_handler_; | 110 NetworkConnectionHandler* network_connection_handler_; |
111 | 111 |
112 // Declare new objects in the order that they will be created during | 112 // Declare new objects in the order that they will be created during |
113 // initialization to ensure that they are destroyed in the correct order. This | 113 // initialization to ensure that they are destroyed in the correct order. This |
114 // order will be enforced by InitializerTest.TestCreateAndDestroy. | 114 // order will be enforced by InitializerTest.TestCreateAndDestroy. |
115 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_; | 115 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_; |
116 std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_; | 116 std::unique_ptr<cryptauth::LocalDeviceDataProvider> |
| 117 local_device_data_provider_; |
117 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher> | 118 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher> |
118 remote_beacon_seed_fetcher_; | 119 remote_beacon_seed_fetcher_; |
119 std::unique_ptr<BleConnectionManager> ble_connection_manager_; | 120 std::unique_ptr<BleConnectionManager> ble_connection_manager_; |
120 std::unique_ptr<TetherHostResponseRecorder> tether_host_response_recorder_; | 121 std::unique_ptr<TetherHostResponseRecorder> tether_host_response_recorder_; |
121 std::unique_ptr<HostScanDevicePrioritizerImpl> host_scan_device_prioritizer_; | 122 std::unique_ptr<HostScanDevicePrioritizerImpl> host_scan_device_prioritizer_; |
122 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_; | 123 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_; |
123 std::unique_ptr<ActiveHost> active_host_; | 124 std::unique_ptr<ActiveHost> active_host_; |
124 std::unique_ptr<ActiveHostNetworkStateUpdater> | 125 std::unique_ptr<ActiveHostNetworkStateUpdater> |
125 active_host_network_state_updater_; | 126 active_host_network_state_updater_; |
126 std::unique_ptr<DeviceIdTetherNetworkGuidMap> | 127 std::unique_ptr<DeviceIdTetherNetworkGuidMap> |
(...skipping 14 matching lines...) Expand all Loading... |
141 base::WeakPtrFactory<Initializer> weak_ptr_factory_; | 142 base::WeakPtrFactory<Initializer> weak_ptr_factory_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(Initializer); | 144 DISALLOW_COPY_AND_ASSIGN(Initializer); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace tether | 147 } // namespace tether |
147 | 148 |
148 } // namespace chromeos | 149 } // namespace chromeos |
149 | 150 |
150 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ | 151 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ |
OLD | NEW |