chromium/chrome/browser/web_applications/commands/web_app_icon_diagnostic_command.h

// Copyright 2024 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_BROWSER_WEB_APPLICATIONS_COMMANDS_WEB_APP_ICON_DIAGNOSTIC_COMMAND_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_WEB_APP_ICON_DIAGNOSTIC_COMMAND_H_

#include <optional>

#include "base/functional/callback_forward.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/web_applications/commands/web_app_command.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "chrome/browser/web_applications/web_app_icon_manager.h"
#include "components/webapps/common/web_app_id.h"

class Profile;

namespace web_app {

class AppLock;

struct WebAppIconDiagnosticResult {};

WebAppIconDiagnosticResultCallback;

// Runs a series of icon health checks for |app_id|.
class WebAppIconDiagnosticCommand
    : public WebAppCommand<AppLock, std::optional<WebAppIconDiagnosticResult>> {};

}  // namespace web_app

#endif  // CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_WEB_APP_ICON_DIAGNOSTIC_COMMAND_H_