summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h')
-rw-r--r--chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h b/chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h
index 92fcebc86c4..3f5600f3a53 100644
--- a/chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h
+++ b/chromium/third_party/blink/renderer/core/workers/worklet_module_responses_map.h
@@ -42,12 +42,14 @@ class CORE_EXPORT WorkletModuleResponsesMap final
// class-level comment.
// Called on worklet threads.
bool GetEntry(const KURL&,
+ ModuleType,
ModuleScriptFetcher::Client*,
scoped_refptr<base::SingleThreadTaskRunner> client_task_runner)
LOCKS_EXCLUDED(mutex_);
// Called on worklet threads.
void SetEntryParams(const KURL&,
+ ModuleType,
const base::Optional<ModuleScriptCreationParams>&)
LOCKS_EXCLUDED(mutex_);
@@ -92,7 +94,8 @@ class CORE_EXPORT WorkletModuleResponsesMap final
// addModule() calls for a newly created global scope.
// See https://drafts.css-houdini.org/worklets/#creating-a-workletglobalscope
// Can be read/written by any thread.
- HashMap<KURL, std::unique_ptr<Entry>> entries_ GUARDED_BY(mutex_);
+ using Key = std::pair<KURL, ModuleType>;
+ HashMap<Key, std::unique_ptr<Entry>> entries_ GUARDED_BY(mutex_);
Mutex mutex_;
};