#include "components/webapps/browser/installable/ml_install_operation_tracker.h"
#include "base/memory/weak_ptr.h"
#include "base/types/pass_key.h"
#include "components/webapps/browser/installable/installable_metrics.h"
#include "components/webapps/browser/installable/ml_install_result_reporter.h"
namespace webapps {
MlInstallOperationTracker::MlInstallOperationTracker(
base::PassKey<MLInstallabilityPromoter> pass_key,
WebappInstallSource source)
: … { … }
MlInstallOperationTracker::~MlInstallOperationTracker() = default;
void MlInstallOperationTracker::OnMlResultForInstallation(
base::PassKey<MLInstallabilityPromoter>,
std::unique_ptr<MlInstallResultReporter> reporter) { … }
void MlInstallOperationTracker::ReportResult(MlInstallUserResponse response) { … }
bool MlInstallOperationTracker::MLReporterAlreadyConnected() { … }
base::WeakPtr<MlInstallOperationTracker>
MlInstallOperationTracker::GetWeakPtr() { … }
}