LibWeb/CSP: Add Keyword Sources FlyStrings

This commit is contained in:
Luke Wilde 2024-11-26 11:58:12 +00:00 committed by Shannon Booth
commit 050f984625
Notes: github-actions[bot] 2025-06-30 22:26:10 +00:00
4 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/ContentSecurityPolicy/Directives/KeywordSources.h>
namespace Web::ContentSecurityPolicy::Directives::KeywordSources {
#define __ENUMERATE_KEYWORD_SOURCE(name, value) \
FlyString name = value##_fly_string;
ENUMERATE_KEYWORD_SOURCES
#undef __ENUMERATE_KEYWORD_SOURCE
}