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

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

Issue 2975483002: [CrOS Tether] Disconnect cleanly from active Tether networks when the user logs out or the Tether c… (Closed)
Patch Set: Created 3 years, 5 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 29 matching lines...) Expand all
40 class NetworkConnectionHandlerTetherDelegate; 40 class NetworkConnectionHandlerTetherDelegate;
41 class DeviceIdTetherNetworkGuidMap; 41 class DeviceIdTetherNetworkGuidMap;
42 class HostScanCache; 42 class HostScanCache;
43 class HostScanner; 43 class HostScanner;
44 class HostScanScheduler; 44 class HostScanScheduler;
45 class HostScanDevicePrioritizerImpl; 45 class HostScanDevicePrioritizerImpl;
46 class KeepAliveScheduler; 46 class KeepAliveScheduler;
47 class NetworkConfigurationRemover; 47 class NetworkConfigurationRemover;
48 class NotificationPresenter; 48 class NotificationPresenter;
49 class TetherConnector; 49 class TetherConnector;
50 class TetherDisconnector; 50 class TetherDisconnectorImpl;
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. If the feature has already been 59 // Initializes the tether feature. If the feature has already been
60 // initialized, this function is a no-op. 60 // initialized, this function is a no-op.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 std::unique_ptr<ActiveHostNetworkStateUpdater> 126 std::unique_ptr<ActiveHostNetworkStateUpdater>
127 active_host_network_state_updater_; 127 active_host_network_state_updater_;
128 std::unique_ptr<DeviceIdTetherNetworkGuidMap> 128 std::unique_ptr<DeviceIdTetherNetworkGuidMap>
129 device_id_tether_network_guid_map_; 129 device_id_tether_network_guid_map_;
130 std::unique_ptr<HostScanCache> host_scan_cache_; 130 std::unique_ptr<HostScanCache> host_scan_cache_;
131 std::unique_ptr<KeepAliveScheduler> keep_alive_scheduler_; 131 std::unique_ptr<KeepAliveScheduler> keep_alive_scheduler_;
132 std::unique_ptr<base::DefaultClock> clock_; 132 std::unique_ptr<base::DefaultClock> clock_;
133 std::unique_ptr<HostScanner> host_scanner_; 133 std::unique_ptr<HostScanner> host_scanner_;
134 std::unique_ptr<HostScanScheduler> host_scan_scheduler_; 134 std::unique_ptr<HostScanScheduler> host_scan_scheduler_;
135 std::unique_ptr<TetherConnector> tether_connector_; 135 std::unique_ptr<TetherConnector> tether_connector_;
136 std::unique_ptr<TetherDisconnector> tether_disconnector_; 136 std::unique_ptr<TetherDisconnectorImpl> tether_disconnector_;
Ryan Hansberry 2017/07/11 22:23:56 Was the change to this file necessary? (I don't fe
Kyle Horimoto 2017/07/12 01:42:59 Nope - changed.
137 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_; 137 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_;
138 std::unique_ptr<NetworkConnectionHandlerTetherDelegate> 138 std::unique_ptr<NetworkConnectionHandlerTetherDelegate>
139 network_connection_handler_tether_delegate_; 139 network_connection_handler_tether_delegate_;
140 std::unique_ptr<TetherNetworkDisconnectionHandler> 140 std::unique_ptr<TetherNetworkDisconnectionHandler>
141 tether_network_disconnection_handler_; 141 tether_network_disconnection_handler_;
142 142
143 base::WeakPtrFactory<Initializer> weak_ptr_factory_; 143 base::WeakPtrFactory<Initializer> weak_ptr_factory_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(Initializer); 145 DISALLOW_COPY_AND_ASSIGN(Initializer);
146 }; 146 };
147 147
148 } // namespace tether 148 } // namespace tether
149 149
150 } // namespace chromeos 150 } // namespace chromeos
151 151
152 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 152 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698