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

Unified Diff: chromeos/components/tether/initializer.h

Issue 2801353002: [CrOS Tether] Fill out the Initializer class. Tether will now initialize fully once the flag is ena… (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698