#include "chrome/common/webui_url_constants.h"
#include <array>
#include <string_view>
#include "base/containers/fixed_flat_set.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/commerce/core/commerce_constants.h"
#include "components/history_clusters/history_clusters_internals/webui/url_constants.h"
#include "components/lens/buildflags.h"
#include "components/nacl/common/buildflags.h"
#include "components/optimization_guide/optimization_guide_internals/webui/url_constants.h"
#include "components/password_manager/content/common/web_ui_constants.h"
#include "components/safe_browsing/core/common/web_ui_constants.h"
#include "device/vr/buildflags/buildflags.h"
#include "extensions/buildflags/buildflags.h"
#include "third_party/blink/public/common/chrome_debug_urls.h"
namespace chrome {
#if BUILDFLAG(IS_CHROMEOS_ASH)
bool IsSystemWebUIHost(std::string_view host) {
constexpr auto kHosts = base::MakeFixedFlatSet<std::string_view>({
kChromeUIAccountManagerErrorHost,
kChromeUIAccountMigrationWelcomeHost,
kChromeUIAddSupervisionHost,
kChromeUIAppInstallDialogHost,
kChromeUIAssistantOptInHost,
kChromeUIBluetoothPairingHost,
kChromeUIBorealisCreditsHost,
kChromeUIBorealisInstallerHost,
kChromeUICertificateManagerHost,
kChromeUICloudUploadHost,
kChromeUICrostiniCreditsHost,
kChromeUICrostiniInstallerHost,
kChromeUICryptohomeHost,
kChromeUIDeviceEmulatorHost,
kChromeUIEmojiPickerHost,
kChromeUIExtendedUpdatesDialogHost,
kChromeUIInternetConfigDialogHost,
kChromeUIInternetDetailDialogHost,
kChromeUILockScreenNetworkHost,
kChromeUILockScreenStartReauthHost,
kChromeUIMobileSetupHost,
kChromeUIMultiDeviceSetupHost,
kChromeUINetworkHost,
kChromeUINotificationTesterHost,
kChromeUIOobeHost,
kChromeUIOSCreditsHost,
kChromeUIOSSettingsHost,
kChromeUIPasswordChangeHost,
kChromeUIPowerHost,
kChromeUISetTimeHost,
kChromeUISmbCredentialsHost,
kChromeUISmbShareHost,
kChromeUIVcTrayTesterHost,
});
return kHosts.contains(host);
}
#endif
base::span<const base::cstring_view> ChromeURLHosts() { … }
base::span<const base::cstring_view> ChromeInternalsURLPaths() { … }
base::span<const base::cstring_view> ChromeDebugURLs() { … }
}