chromium/third_party/blink/renderer/core/script/module_map.cc

// Copyright 2017 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/module_map.h"

#include "third_party/blink/renderer/core/loader/modulescript/module_script_fetch_request.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_loader.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_loader_client.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_loader_registry.h"
#include "third_party/blink/renderer/core/script/modulator.h"
#include "third_party/blink/renderer/core/script/module_script.h"
#include "third_party/blink/renderer/platform/bindings/name_client.h"

namespace blink {

// Entry struct represents a value in "module map" spec object.
// https://html.spec.whatwg.org/C/#module-map
class ModuleMap::Entry final : public GarbageCollected<Entry>,
                               public NameClient,
                               public ModuleScriptLoaderClient {};

ModuleMap::Entry::Entry(ModuleMap* map) :{}

void ModuleMap::Entry::Trace(Visitor* visitor) const {}

void ModuleMap::Entry::DispatchFinishedNotificationAsync(
    SingleModuleClient* client) {}

void ModuleMap::Entry::AddClient(SingleModuleClient* new_client) {}

void ModuleMap::Entry::NotifyNewSingleModuleFinished(
    ModuleScript* module_script) {}

ModuleScript* ModuleMap::Entry::GetModuleScript() const {}

ModuleMap::ModuleMap(Modulator* modulator)
    :{}

void ModuleMap::Trace(Visitor* visitor) const {}

// <specdef href="https://html.spec.whatwg.org/C/#fetch-a-single-module-script">
void ModuleMap::FetchSingleModuleScript(
    const ModuleScriptFetchRequest& request,
    ResourceFetcher* fetch_client_settings_object_fetcher,
    ModuleGraphLevel level,
    ModuleScriptCustomFetchType custom_fetch_type,
    SingleModuleClient* client) {}

ModuleScript* ModuleMap::GetFetchedModuleScript(const KURL& url,
                                                ModuleType module_type) const {}

}  // namespace blink