chromium/chrome/updater/app/app_install.h

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

#ifndef CHROME_UPDATER_APP_APP_INSTALL_H_
#define CHROME_UPDATER_APP_APP_INSTALL_H_

#include <memory>
#include <string>

#include "base/functional/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "chrome/updater/app/app.h"
#include "chrome/updater/lock.h"

namespace base {
class Version;
}

namespace updater {

class ExternalConstants;
class UpdateService;

// This class defines an interface for installing an application. The interface
// is intended to be implemented for scenerios where UI and RPC calls to
// |UpdateService| are involved, hence the word `controller` in the name of
// the interface.
class AppInstallController
    : public base::RefCountedThreadSafe<AppInstallController> {};

// Sets the updater up then installs an application while displaying the UI
// progress window.
class AppInstall : public App {};

scoped_refptr<App> MakeAppInstall(bool is_silent_install);

}  // namespace updater

#endif  // CHROME_UPDATER_APP_APP_INSTALL_H_