#include "third_party/blink/renderer/core/frame/csp/conversion_util.h"
#include "services/network/public/mojom/content_security_policy.mojom-blink.h"
namespace blink {
namespace {
WebCSPSource ConvertToPublic(network::mojom::blink::CSPSourcePtr source) { … }
WebCSPHashSource ConvertToPublic(
network::mojom::blink::CSPHashSourcePtr hash_source) { … }
WebCSPSourceList ConvertToPublic(
network::mojom::blink::CSPSourceListPtr source_list) { … }
std::optional<WebCSPTrustedTypes> ConvertToPublic(
network::mojom::blink::CSPTrustedTypesPtr trusted_types) { … }
WebContentSecurityPolicyHeader ConvertToPublic(
network::mojom::blink::ContentSecurityPolicyHeaderPtr header) { … }
Vector<String> ConvertToWTF(const WebVector<blink::WebString>& list_in) { … }
network::mojom::blink::CSPSourcePtr ConvertToMojoBlink(
const WebCSPSource& source) { … }
network::mojom::blink::CSPHashSourcePtr ConvertToMojoBlink(
const WebCSPHashSource& hash_source) { … }
network::mojom::blink::CSPSourceListPtr ConvertToMojoBlink(
const WebCSPSourceList& source_list) { … }
}
WebContentSecurityPolicy ConvertToPublic(
network::mojom::blink::ContentSecurityPolicyPtr policy) { … }
network::mojom::blink::ContentSecurityPolicyPtr ConvertToMojoBlink(
const WebContentSecurityPolicy& policy_in) { … }
Vector<network::mojom::blink::ContentSecurityPolicyPtr> ConvertToMojoBlink(
const WebVector<WebContentSecurityPolicy>& list_in) { … }
}