#include "chrome/browser/web_applications/isolated_web_apps/get_isolated_web_app_browsing_data_command.h"
#include <memory>
#include "base/barrier_closure.h"
#include "base/functional/callback.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_model_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_observer.h"
#include "chrome/browser/web_applications/locks/all_apps_lock.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "components/browsing_data/content/browsing_data_model.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/storage_partition_config.h"
#include "ui/base/models/tree_model.h"
#include "url/origin.h"
namespace web_app {
namespace {
const char kDebugOriginKey[] = …;
class StoragePartitionSizeEstimator : private ProfileObserver { … };
}
GetIsolatedWebAppBrowsingDataCommand::GetIsolatedWebAppBrowsingDataCommand(
Profile* profile,
BrowsingDataCallback callback)
: … { … }
GetIsolatedWebAppBrowsingDataCommand::~GetIsolatedWebAppBrowsingDataCommand() =
default;
void GetIsolatedWebAppBrowsingDataCommand::StartWithLock(
std::unique_ptr<AllAppsLock> lock) { … }
void GetIsolatedWebAppBrowsingDataCommand::StoragePartitionSizeFetched(
const url::Origin& iwa_origin,
int64_t size) { … }
void GetIsolatedWebAppBrowsingDataCommand::MaybeCompleteCommand() { … }
}