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

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

Issue 2844973002: [CrOS Tether] Create TetherHostResponseRecorder, which records ConnectTetheringResponses and Tether… (Closed)
Patch Set: Changed "Connectable" wording to "Connected". Created 3 years, 7 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 26 matching lines...) Expand all
37 class BleConnectionManager; 37 class BleConnectionManager;
38 class DeviceIdTetherNetworkGuidMap; 38 class DeviceIdTetherNetworkGuidMap;
39 class HostScanner; 39 class HostScanner;
40 class HostScanDevicePrioritizer; 40 class HostScanDevicePrioritizer;
41 class LocalDeviceDataProvider; 41 class LocalDeviceDataProvider;
42 class NetworkConfigurationRemover; 42 class NetworkConfigurationRemover;
43 class NotificationPresenter; 43 class NotificationPresenter;
44 class TetherConnector; 44 class TetherConnector;
45 class TetherDeviceStateManager; 45 class TetherDeviceStateManager;
46 class TetherHostFetcher; 46 class TetherHostFetcher;
47 class TetherHostResponseRecorder;
47 class TetherNetworkDisconnectionHandler; 48 class TetherNetworkDisconnectionHandler;
48 class WifiHotspotConnector; 49 class WifiHotspotConnector;
49 50
50 // Initializes the Tether Chrome OS component. 51 // Initializes the Tether Chrome OS component.
51 class Initializer : public OAuth2TokenService::Observer { 52 class Initializer : public OAuth2TokenService::Observer {
52 public: 53 public:
53 // Initializes the tether feature. 54 // Initializes the tether feature.
54 static void Init( 55 static void Init(
55 cryptauth::CryptAuthService* cryptauth_service, 56 cryptauth::CryptAuthService* cryptauth_service,
56 std::unique_ptr<NotificationPresenter> notification_presenter, 57 std::unique_ptr<NotificationPresenter> notification_presenter,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 // Declare new objects in the order that they will be created during 107 // Declare new objects in the order that they will be created during
107 // initialization to ensure that they are destroyed in the correct order. This 108 // initialization to ensure that they are destroyed in the correct order. This
108 // order will be enforced by InitializerTest.TestCreateAndDestroy. 109 // order will be enforced by InitializerTest.TestCreateAndDestroy.
109 std::unique_ptr<TetherDeviceStateManager> tether_device_state_manager_; 110 std::unique_ptr<TetherDeviceStateManager> tether_device_state_manager_;
110 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_; 111 std::unique_ptr<TetherHostFetcher> tether_host_fetcher_;
111 std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_; 112 std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_;
112 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher> 113 std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher>
113 remote_beacon_seed_fetcher_; 114 remote_beacon_seed_fetcher_;
114 std::unique_ptr<BleConnectionManager> ble_connection_manager_; 115 std::unique_ptr<BleConnectionManager> ble_connection_manager_;
116 std::unique_ptr<TetherHostResponseRecorder> tether_host_response_recorder_;
115 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_; 117 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_;
116 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_; 118 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_;
117 std::unique_ptr<ActiveHost> active_host_; 119 std::unique_ptr<ActiveHost> active_host_;
118 std::unique_ptr<ActiveHostNetworkStateUpdater> 120 std::unique_ptr<ActiveHostNetworkStateUpdater>
119 active_host_network_state_updater_; 121 active_host_network_state_updater_;
120 std::unique_ptr<DeviceIdTetherNetworkGuidMap> 122 std::unique_ptr<DeviceIdTetherNetworkGuidMap>
121 device_id_tether_network_guid_map_; 123 device_id_tether_network_guid_map_;
122 std::unique_ptr<TetherConnector> tether_connector_; 124 std::unique_ptr<TetherConnector> tether_connector_;
123 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_; 125 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_;
124 std::unique_ptr<TetherNetworkDisconnectionHandler> 126 std::unique_ptr<TetherNetworkDisconnectionHandler>
125 tether_network_disconnection_handler_; 127 tether_network_disconnection_handler_;
126 std::unique_ptr<HostScanner> host_scanner_; 128 std::unique_ptr<HostScanner> host_scanner_;
127 129
128 base::WeakPtrFactory<Initializer> weak_ptr_factory_; 130 base::WeakPtrFactory<Initializer> weak_ptr_factory_;
129 131
130 DISALLOW_COPY_AND_ASSIGN(Initializer); 132 DISALLOW_COPY_AND_ASSIGN(Initializer);
131 }; 133 };
132 134
133 } // namespace tether 135 } // namespace tether
134 136
135 } // namespace chromeos 137 } // namespace chromeos
136 138
137 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 139 #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