// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/frame/csp/trusted_types_directive.h" #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" namespace blink { namespace { bool IsNotPolicyNameChar(UChar c) { … } bool IsPolicyName(const String& name) { … } } // namespace bool CSPTrustedTypesAllows( const network::mojom::blink::CSPTrustedTypes& trusted_types, const String& value, bool is_duplicate, ContentSecurityPolicy::AllowTrustedTypePolicyDetails& violation_details) { … } } // namespace blink