// Copyright 2019 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/script/parsed_specifier.h" #include "third_party/blink/renderer/platform/wtf/text/string_builder.h" namespace blink { // <specdef href="https://html.spec.whatwg.org/#resolve-a-module-specifier"> // <specdef label="import-specifier" // href="https://wicg.github.io/import-maps/#parse-a-url-like-import-specifier"> // This can return a kBare ParsedSpecifier for cases where the spec concepts // listed above should return failure/null. The users of ParsedSpecifier should // handle kBare cases properly, depending on contexts and whether import maps // are enabled. ParsedSpecifier ParsedSpecifier::Create(const String& specifier, const KURL& base_url) { … } String ParsedSpecifier::GetImportMapKeyString() const { … } KURL ParsedSpecifier::GetUrl() const { … } } // namespace blink