#include "third_party/blink/renderer/core/workers/worklet_module_responses_map.h"
#include <optional>
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
namespace {
bool IsValidURL(const KURL& url) { … }
}
void WorkletModuleResponsesMap::Entry::AddClient(
ModuleScriptFetcher::Client* client,
scoped_refptr<base::SingleThreadTaskRunner> client_task_runner) { … }
void WorkletModuleResponsesMap::Entry::SetParams(
const std::optional<ModuleScriptCreationParams>& params) { … }
bool WorkletModuleResponsesMap::GetEntry(
const KURL& url,
ModuleType module_type,
ModuleScriptFetcher::Client* client,
scoped_refptr<base::SingleThreadTaskRunner> client_task_runner) { … }
void WorkletModuleResponsesMap::SetEntryParams(
const KURL& url,
ModuleType module_type,
const std::optional<ModuleScriptCreationParams>& params) { … }
void WorkletModuleResponsesMap::Dispose() { … }
}