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

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

Issue 2857853005: [CrOS Tether] Create TetherDisconnector, which disconnects from active tethering sessions. (Closed)
Patch Set: hansberry@ comments. 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 17 matching lines...) Expand all
28 class ManagedNetworkConfigurationHandler; 28 class ManagedNetworkConfigurationHandler;
29 class NetworkConnect; 29 class NetworkConnect;
30 class NetworkConnectionHandler; 30 class NetworkConnectionHandler;
31 class NetworkStateHandler; 31 class NetworkStateHandler;
32 32
33 namespace tether { 33 namespace tether {
34 34
35 class ActiveHost; 35 class ActiveHost;
36 class ActiveHostNetworkStateUpdater; 36 class ActiveHostNetworkStateUpdater;
37 class BleConnectionManager; 37 class BleConnectionManager;
38 class NetworkConnectionHandlerTetherDelegate;
38 class DeviceIdTetherNetworkGuidMap; 39 class DeviceIdTetherNetworkGuidMap;
39 class HostScanCache; 40 class HostScanCache;
40 class HostScanner; 41 class HostScanner;
41 class HostScanDevicePrioritizer; 42 class HostScanDevicePrioritizer;
42 class LocalDeviceDataProvider; 43 class LocalDeviceDataProvider;
43 class NetworkConfigurationRemover; 44 class NetworkConfigurationRemover;
44 class NotificationPresenter; 45 class NotificationPresenter;
45 class TetherConnector; 46 class TetherConnector;
47 class TetherDisconnector;
46 class TetherHostFetcher; 48 class TetherHostFetcher;
47 class TetherHostResponseRecorder; 49 class TetherHostResponseRecorder;
48 class TetherNetworkDisconnectionHandler; 50 class TetherNetworkDisconnectionHandler;
49 class WifiHotspotConnector; 51 class WifiHotspotConnector;
50 52
51 // Initializes the Tether Chrome OS component. 53 // Initializes the Tether Chrome OS component.
52 class Initializer : public OAuth2TokenService::Observer { 54 class Initializer : public OAuth2TokenService::Observer {
53 public: 55 public:
54 // Initializes the tether feature. 56 // Initializes the tether feature.
55 static void Init( 57 static void Init(
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 std::unique_ptr<BleConnectionManager> ble_connection_manager_; 116 std::unique_ptr<BleConnectionManager> ble_connection_manager_;
115 std::unique_ptr<TetherHostResponseRecorder> tether_host_response_recorder_; 117 std::unique_ptr<TetherHostResponseRecorder> tether_host_response_recorder_;
116 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_; 118 std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_;
117 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_; 119 std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_;
118 std::unique_ptr<ActiveHost> active_host_; 120 std::unique_ptr<ActiveHost> active_host_;
119 std::unique_ptr<ActiveHostNetworkStateUpdater> 121 std::unique_ptr<ActiveHostNetworkStateUpdater>
120 active_host_network_state_updater_; 122 active_host_network_state_updater_;
121 std::unique_ptr<DeviceIdTetherNetworkGuidMap> 123 std::unique_ptr<DeviceIdTetherNetworkGuidMap>
122 device_id_tether_network_guid_map_; 124 device_id_tether_network_guid_map_;
123 std::unique_ptr<TetherConnector> tether_connector_; 125 std::unique_ptr<TetherConnector> tether_connector_;
126 std::unique_ptr<TetherDisconnector> tether_disconnector_;
124 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_; 127 std::unique_ptr<NetworkConfigurationRemover> network_configuration_remover_;
128 std::unique_ptr<NetworkConnectionHandlerTetherDelegate>
129 network_connection_handler_tether_delegate_;
125 std::unique_ptr<TetherNetworkDisconnectionHandler> 130 std::unique_ptr<TetherNetworkDisconnectionHandler>
126 tether_network_disconnection_handler_; 131 tether_network_disconnection_handler_;
127 std::unique_ptr<HostScanCache> host_scan_cache_; 132 std::unique_ptr<HostScanCache> host_scan_cache_;
128 std::unique_ptr<HostScanner> host_scanner_; 133 std::unique_ptr<HostScanner> host_scanner_;
129 134
130 base::WeakPtrFactory<Initializer> weak_ptr_factory_; 135 base::WeakPtrFactory<Initializer> weak_ptr_factory_;
131 136
132 DISALLOW_COPY_AND_ASSIGN(Initializer); 137 DISALLOW_COPY_AND_ASSIGN(Initializer);
133 }; 138 };
134 139
135 } // namespace tether 140 } // namespace tether
136 141
137 } // namespace chromeos 142 } // namespace chromeos
138 143
139 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_ 144 #endif // CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
OLDNEW
« no previous file with comments | « chromeos/components/tether/fake_network_configuration_remover.cc ('k') | chromeos/components/tether/initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698