diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/script/module_map.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/script/module_map.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/script/module_map.h b/chromium/third_party/blink/renderer/core/script/module_map.h index da36d05005b..9274c7d2dd3 100644 --- a/chromium/third_party/blink/renderer/core/script/module_map.h +++ b/chromium/third_party/blink/renderer/core/script/module_map.h @@ -22,6 +22,7 @@ class ResourceFetcher; class SingleModuleClient; enum class ModuleGraphLevel; enum class ModuleScriptCustomFetchType; +enum class ModuleType; // A ModuleMap implements "module map" spec. // https://html.spec.whatwg.org/C/#module-map @@ -48,12 +49,13 @@ class CORE_EXPORT ModuleMap final : public GarbageCollected<ModuleMap>, // Synchronously get the ModuleScript for a given URL. // If the URL wasn't fetched, or is currently being fetched, this returns a // nullptr. - ModuleScript* GetFetchedModuleScript(const KURL&) const; + ModuleScript* GetFetchedModuleScript(const KURL&, ModuleType) const; Modulator* GetModulator() { return modulator_; } private: - using MapImpl = HeapHashMap<KURL, Member<Entry>>; + using Key = std::pair<KURL, ModuleType>; + using MapImpl = HeapHashMap<Key, Member<Entry>>; // A module map is a map of absolute URLs to map entry. MapImpl map_; |