| Index: chromeos/components/tether/initializer.h
|
| diff --git a/chromeos/components/tether/initializer.h b/chromeos/components/tether/initializer.h
|
| index 76a98a972f601fb8fdc4d0d8154a543dacac24c6..cf8eef03c4a27280df0bcd2d2ac01ee17ec5bab5 100644
|
| --- a/chromeos/components/tether/initializer.h
|
| +++ b/chromeos/components/tether/initializer.h
|
| @@ -5,29 +5,76 @@
|
| #ifndef CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
|
| #define CHROMEOS_COMPONENTS_TETHER_INITIALIZER_H_
|
|
|
| +#include <memory>
|
| +
|
| #include "base/macros.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "device/bluetooth/bluetooth_adapter.h"
|
| +
|
| +class PrefService;
|
|
|
| namespace cryptauth {
|
| class CryptAuthService;
|
| +class RemoteBeaconSeedFetcher;
|
| }
|
|
|
| namespace chromeos {
|
|
|
| namespace tether {
|
|
|
| +class ActiveHost;
|
| +class ActiveHostNetworkStateUpdater;
|
| +class BleConnectionManager;
|
| +class DeviceIdTetherNetworkGuidMap;
|
| +class HostScanner;
|
| +class HostScanDevicePrioritizer;
|
| +class LocalDeviceDataProvider;
|
| +class NotificationPresenter;
|
| +class TetherConnector;
|
| +class TetherHostFetcher;
|
| +class WifiHotspotConnector;
|
| +
|
| // Initializes the Tether Chrome OS component.
|
| // TODO(khorimoto): Implement.
|
| class Initializer {
|
| public:
|
| - static void Initialize(cryptauth::CryptAuthService* cryptauth_service);
|
| + static void Initialize(
|
| + cryptauth::CryptAuthService* cryptauth_service,
|
| + std::unique_ptr<NotificationPresenter> notification_presenter,
|
| + PrefService* pref_service);
|
|
|
| private:
|
| static Initializer* instance_;
|
|
|
| - explicit Initializer(cryptauth::CryptAuthService* cryptauth_service);
|
| + Initializer(cryptauth::CryptAuthService* cryptauth_service,
|
| + std::unique_ptr<NotificationPresenter> notification_presenter,
|
| + PrefService* pref_service);
|
| ~Initializer();
|
|
|
| + void OnBluetoothAdapterFetched(
|
| + scoped_refptr<device::BluetoothAdapter> adapter);
|
| +
|
| cryptauth::CryptAuthService* cryptauth_service_;
|
| + std::unique_ptr<NotificationPresenter> notification_presenter_;
|
| + PrefService* pref_service_;
|
| +
|
| + std::unique_ptr<TetherHostFetcher> tether_host_fetcher_;
|
| + std::unique_ptr<LocalDeviceDataProvider> local_device_data_provider_;
|
| + std::unique_ptr<cryptauth::RemoteBeaconSeedFetcher>
|
| + remote_beacon_seed_fetcher_;
|
| + std::unique_ptr<BleConnectionManager> ble_connection_manager_;
|
| + std::unique_ptr<HostScanDevicePrioritizer> host_scan_device_prioritizer_;
|
| + std::unique_ptr<WifiHotspotConnector> wifi_hotspot_connector_;
|
| + std::unique_ptr<ActiveHost> active_host_;
|
| + std::unique_ptr<ActiveHostNetworkStateUpdater>
|
| + active_host_network_state_updater_;
|
| + std::unique_ptr<DeviceIdTetherNetworkGuidMap>
|
| + device_id_tether_network_guid_map_;
|
| + std::unique_ptr<TetherConnector> tether_connector_;
|
| + std::unique_ptr<HostScanner> host_scanner_;
|
| +
|
| + base::WeakPtrFactory<Initializer> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(Initializer);
|
| };
|
|
|