chromium/components/webapps/browser/installable/ml_install_operation_tracker.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_WEBAPPS_BROWSER_INSTALLABLE_ML_INSTALL_OPERATION_TRACKER_H_
#define COMPONENTS_WEBAPPS_BROWSER_INSTALLABLE_ML_INSTALL_OPERATION_TRACKER_H_

#include <memory>

#include "base/memory/weak_ptr.h"
#include "base/types/pass_key.h"
#include "components/webapps/browser/installable/installable_metrics.h"

namespace webapps {
class MLInstallabilityPromoter;
class MlInstallResultReporter;

// These are the actions that a user can take when interacting with installation
// UX.
enum class MlInstallUserResponse {};

// Reports the result of an install to the ML metrics system, if applicable.
// This is expected to be constructed via
// MLInstallabilityPromoter::RegisterCurrentInstallForWebContents, called from
// web_app_dialog_utils.h functions, so that all user-prompt installs for a
// given web contents are tracked this way.
class MlInstallOperationTracker {};

}  // namespace webapps

#endif  // COMPONENTS_WEBAPPS_BROWSER_INSTALLABLE_ML_INSTALL_OPERATION_TRACKER_H_