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

Side by Side Diff: chromeos/components/tether/initializer.h

Issue 2836543002: Revert of [CrOS Tether] Add the notion of a tether DeviceState. (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 unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 32
33 class ActiveHost; 33 class ActiveHost;
34 class ActiveHostNetworkStateUpdater; 34 class ActiveHostNetworkStateUpdater;
35 class BleConnectionManager; 35 class BleConnectionManager;
36 class DeviceIdTetherNetworkGuidMap; 36 class DeviceIdTetherNetworkGuidMap;
37 class HostScanner; 37 class HostScanner;
38 class HostScanDevicePrioritizer; 38 class HostScanDevicePrioritizer;
39 class LocalDeviceDataProvider; 39 class LocalDeviceDataProvider;
40 class NotificationPresenter; 40 class NotificationPresenter;
41 class TetherConnector; 41 class TetherConnector;
42 class TetherDeviceStateManager;
43 class TetherHostFetcher; 42 class TetherHostFetcher;
44 class WifiHotspotConnector; 43 class WifiHotspotConnector;
45 44
46 // Initializes the Tether Chrome OS component. 45 // Initializes the Tether Chrome OS component.
47 class Initializer : public OAuth2TokenService::Observer { 46 class Initializer : public OAuth2TokenService::Observer {
48 public: 47 public:
49 // Initializes the tether feature. 48 // Initializes the tether feature.
50 static void Init( 49 static void Init(
51 cryptauth::CryptAuthService* cryptauth_service, 50 cryptauth::CryptAuthService* cryptauth_service,
52 std::unique_ptr<NotificationPresenter> notification_presenter, 51 std::unique_ptr<NotificationPresenter> notification_presenter,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 cryptauth::CryptAuthService* cryptauth_service_; 87 cryptauth::CryptAuthService* cryptauth_service_;
89 std::unique_ptr<NotificationPresenter> notification_presenter_; 88 std::unique_ptr<NotificationPresenter> notification_presenter_;
90 PrefService* pref_service_; 89 PrefService* pref_service_;
91 ProfileOAuth2TokenService* token_service_; 90 ProfileOAuth2TokenService* token_service_;
92 NetworkStateHandler* network_state_handler_; 91 NetworkStateHandler* network_state_handler_;
93 NetworkConnect* network_connect_; 92 NetworkConnect* network_connect_;
94 93
95 // Declare new objects in the order that they will be created during 94 // Declare new objects in the order that they will be created during
96 // initialization to ensure that they are destroyed in the correct order. This 95 // initialization to ensure that they are destroyed in the correct order. This
97 // order will be enforced by InitializerTest.TestCreateAndDestroy. 96 // order will be enforced by InitializerTest.TestCreateAndDestroy.
98 std::unique_ptr<TetherDeviceStateManager> tether_device_state_manager_;
99 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_; 97 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_;
100 std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_; 98 std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_;
101 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher> 99 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher>
102 remote_beacon_seed_fetcher_; 100 remote_beacon_seed_fetcher_;
103 std::unique_ptr<BleConnectionManager> ble_connection_manager_; 101 std::unique_ptr<BleConnectionManager> ble_connection_manager_;
104 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_; 102 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_;
105 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_; 103 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_;
106 std::unique_ptr<ActiveHost> active_host_; 104 std::unique_ptr<ActiveHost> active_host_;
107 std::unique_ptr<ActiveHostNetworkStateUpdater> 105 std::unique_ptr<ActiveHostNetworkStateUpdater>
108 active_host_network_state_updater_; 106 active_host_network_state_updater_;
109 std::unique_ptr<DeviceIdTetherNetworkGuidMap> 107 std::unique_ptr<DeviceIdTetherNetworkGuidMap>
110 device_id_tether_network_guid_map_; 108 device_id_tether_network_guid_map_;
111 std::unique_ptr<TetherConnector> tether_connector_; 109 std::unique_ptr<TetherConnector> tether_connector_;
112 std::unique_ptr<HostScanner> host_scanner_; 110 std::unique_ptr<HostScanner> host_scanner_;
113 111
114 base::WeakPtrFactory<Initializer> weak_ptr_factory_; 112 base::WeakPtrFactory<Initializer> weak_ptr_factory_;
115 113
116 DISALLOW_COPY_AND_ASSIGN(Initializer); 114 DISALLOW_COPY_AND_ASSIGN(Initializer);
117 }; 115 };
118 116
119 } // namespace tether 117 } // namespace tether
120 118
121 } // namespace chromeos 119 } // namespace chromeos
122 120
123 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 121 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
OLDNEW
« no previous file with comments | « chromeos/components/tether/host_scanner_unittest.cc ('k') | chromeos/components/tether/initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698