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

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

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