chromium/chrome/browser/web_applications/commands/compute_app_size_command.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 CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_COMPUTE_APP_SIZE_COMMAND_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_COMPUTE_APP_SIZE_COMMAND_H_

#include <cstdint>
#include <memory>
#include <optional>
#include <vector>

#include "base/files/file_path.h"
#include "base/functional/callback.h"
#include "chrome/browser/browsing_data/site_data_size_collector.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/commands/web_app_command.h"
#include "chrome/browser/web_applications/locks/app_lock.h"
#include "components/browsing_data/content/browsing_data_quota_helper.h"
#include "components/services/app_service/public/cpp/app_types.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/storage_usage_info.h"

namespace content {
struct StorageUsageInfo;
}

namespace web_app {

class AppLock;

struct ComputedAppSize {};

// ComputeAppSizeCommand calculates the app and data size of a given app
class ComputeAppSizeCommand
    : public WebAppCommand<AppLock, std::optional<ComputedAppSize>> {};

}  // namespace web_app

#endif  // CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_COMPUTE_APP_SIZE_COMMAND_H_