#include "chrome/browser/ui/webui/app_service_internals/app_service_internals_page_handler_impl.h"
#include <algorithm>
#include <functional>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "base/containers/flat_map.h"
#include "base/ranges/algorithm.h"
#include "chrome/browser/apps/app_service/app_service_proxy.h"
#include "chrome/browser/apps/app_service/app_service_proxy_factory.h"
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.mojom-forward.h"
#include "chrome/browser/ui/webui/app_service_internals/app_service_internals.mojom.h"
#include "components/services/app_service/public/cpp/app_update.h"
#include "components/services/app_service/public/cpp/capability_access_update.h"
#include "components/services/app_service/public/cpp/intent_filter_util.h"
#include "components/services/app_service/public/cpp/intent_util.h"
#include "components/services/app_service/public/cpp/package_id.h"
#include "components/services/app_service/public/cpp/preferred_app.h"
#include "third_party/abseil-cpp/absl/utility/utility.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/constants/ash_features.h"
#include "chrome/browser/apps/app_service/promise_apps/promise_app.h"
#include "chrome/browser/apps/app_service/promise_apps/promise_app_registry_cache.h"
#endif
namespace {
std::vector<mojom::app_service_internals::AppInfoPtr> GetApps(
apps::AppServiceProxy* proxy) { … }
std::vector<mojom::app_service_internals::PreferredAppInfoPtr> GetPreferredApps(
apps::AppServiceProxy* proxy) { … }
std::vector<mojom::app_service_internals::PromiseAppInfoPtr> GetPromiseApps(
apps::AppServiceProxy* proxy) { … }
std::vector<mojom::app_service_internals::AppCapabilityInfoPtr>
GetAppCapabilities(apps::AppServiceProxy* proxy) { … }
}
AppServiceInternalsPageHandlerImpl::AppServiceInternalsPageHandlerImpl(
Profile* profile,
mojo::PendingReceiver<
mojom::app_service_internals::AppServiceInternalsPageHandler> receiver)
: … { … }
AppServiceInternalsPageHandlerImpl::~AppServiceInternalsPageHandlerImpl() =
default;
void AppServiceInternalsPageHandlerImpl::GetDebugInfo(
GetDebugInfoCallback callback) { … }