#include "chrome/browser/web_applications/isolated_web_apps/remove_isolated_web_app_data.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/overloaded.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_install_command_helper.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_reader_registry_factory.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_source.h"
#include "chrome/browser/web_applications/isolated_web_apps/isolated_web_app_storage_location.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browsing_data_filter_builder.h"
#include "content/public/browser/browsing_data_remover.h"
#include "url/origin.h"
namespace web_app {
namespace {
class RemovalObserver : public content::BrowsingDataRemover::Observer { … };
void CloseBundle(Profile* profile,
const IwaSource& source,
base::OnceClosure callback) { … }
}
void RemoveIsolatedWebAppBrowsingData(Profile* profile,
const url::Origin& iwa_origin,
base::OnceClosure callback) { … }
void CloseAndDeleteBundle(Profile* profile,
const IsolatedWebAppStorageLocation& location,
base::OnceClosure callback) { … }
}