2024-11-25 13:17:17 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025, Luke Wilde <luke@ladybird.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Realm.h>
|
|
|
|
|
#include <LibWeb/ContentSecurityPolicy/Directives/Directive.h>
|
|
|
|
|
#include <LibWeb/ContentSecurityPolicy/Directives/DirectiveFactory.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::ContentSecurityPolicy::Directives {
|
|
|
|
|
|
2025-04-25 20:35:51 -03:00
|
|
|
GC::Ref<Directive> create_directive(GC::Heap& heap, String name, Vector<String> value)
|
2024-11-25 13:17:17 -03:00
|
|
|
{
|
2025-04-25 20:35:51 -03:00
|
|
|
return heap.allocate<Directive>(move(name), move(value));
|
2024-11-25 13:17:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|