blob: a531ecf6745f989a874d02a69def89d7a12bcabe [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_UPDATER_SPLASH_SCREEN_H_
#define CHROME_UPDATER_SPLASH_SCREEN_H_
#include <memory>
#include "base/callback_forward.h"
namespace updater {
// Displays a splash screen during install.
class SplashScreen {
public:
using Maker = base::RepeatingCallback<std::unique_ptr<SplashScreen>()>;
virtual ~SplashScreen() = default;
virtual void Show() = 0;
virtual void Dismiss(base::OnceClosure callback) = 0;
};
} // namespace updater
#endif // CHROME_UPDATER_SPLASH_SCREEN_H_