// 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.
// https://github.com/w3c/trusted-types
typedef (TrustedHTML or TrustedScript or TrustedScriptURL) TrustedType;
[
Exposed=(Window, Worker)
] interface TrustedTypePolicy {
readonly attribute DOMString name;
[CallWith=ScriptState, RaisesException] TrustedHTML createHTML(DOMString input, any... args);
[CallWith=ScriptState, RaisesException] TrustedScript createScript(DOMString input, any... args);
[CallWith=ScriptState, RaisesException] TrustedScriptURL createScriptURL(DOMString input, any... args);
};