Refactor ScriptLoader::IsValidScriptTypeAndLanguage()
Previously, it returns - `mojom::blink::ScriptType`, - `bool is_import_map` and - a `bool` as a return value indicating whether the type is valid or not. To unify these, this CL introduces `ScriptTypeAtPrepare` that includes `kImportMap` and uses it throughout ScriptLoader. Change-Id: I6573bb2c07b81c4161d7ad51c425ac6499e2bc3a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593737 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#838780}
Showing
This diff is collapsed.
Please register or sign in to comment