diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h b/chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h index 2169c32ba87..4f825a887cf 100644 --- a/chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h +++ b/chromium/third_party/blink/renderer/core/trustedtypes/trusted_types_util.h @@ -11,7 +11,6 @@ namespace blink { -class Document; class ExecutionContext; class ExceptionState; class StringOrTrustedHTMLOrTrustedScriptOrTrustedScriptURL; @@ -24,12 +23,6 @@ enum class SpecificTrustedType { kScriptURL, }; -// TODO(crbug.com/1029822): Temporary helpers to ease migrating ExecutionContext -// to LocalDOMWindow. -CORE_EXPORT String TrustedTypesCheckForHTML(const String&, - const Document*, - ExceptionState&); - // Perform Trusted Type checks, with the IDL union types as input. All of these // will call String& versions below to do the heavy lifting. CORE_EXPORT String TrustedTypesCheckFor( @@ -65,10 +58,11 @@ CORE_EXPORT String TrustedTypesCheckForScriptURL(const String&, // Functionally equivalent to TrustedTypesCheckForScript(const String&, ...), // but with setup & error handling suitable for the asynchronous execution // cases. -String TrustedTypesCheckForJavascriptURLinNavigation(const String&, Document*); +String TrustedTypesCheckForJavascriptURLinNavigation(const String&, + ExecutionContext*); CORE_EXPORT String GetStringForScriptExecution(const String&, ScriptElementBase::Type, - Document*); + ExecutionContext*); // Determine whether a Trusted Types check is needed in this execution context. // |