#include "third_party/blink/renderer/core/testing/dummy_modulator.h"
#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h"
#include "third_party/blink/renderer/core/script/import_map_error.h"
#include "third_party/blink/renderer/core/script/module_record_resolver.h"
namespace blink {
namespace {
class EmptyModuleRecordResolver final : public ModuleRecordResolver { … };
}
DummyModulator::DummyModulator()
: … { … }
DummyModulator::~DummyModulator() = default;
void DummyModulator::Trace(Visitor* visitor) const { … }
ScriptState* DummyModulator::GetScriptState() { … }
mojom::blink::V8CacheOptions DummyModulator::GetV8CacheOptions() const { … }
bool DummyModulator::IsScriptingDisabled() const { … }
ModuleRecordResolver* DummyModulator::GetModuleRecordResolver() { … }
base::SingleThreadTaskRunner* DummyModulator::TaskRunner() { … }
void DummyModulator::FetchTree(const KURL&,
ModuleType,
ResourceFetcher*,
mojom::blink::RequestContextType,
network::mojom::RequestDestination,
const ScriptFetchOptions&,
ModuleScriptCustomFetchType,
ModuleTreeClient*,
String referrer) { … }
void DummyModulator::FetchSingle(const ModuleScriptFetchRequest&,
ResourceFetcher*,
ModuleGraphLevel,
ModuleScriptCustomFetchType,
SingleModuleClient*) { … }
void DummyModulator::FetchDescendantsForInlineScript(
ModuleScript*,
ResourceFetcher*,
mojom::blink::RequestContextType,
network::mojom::RequestDestination,
ModuleTreeClient*) { … }
ModuleScript* DummyModulator::GetFetchedModuleScript(const KURL&, ModuleType) { … }
KURL DummyModulator::ResolveModuleSpecifier(const String&,
const KURL&,
String*) { … }
String DummyModulator::GetIntegrityMetadataString(const KURL&) const { … }
IntegrityMetadataSet DummyModulator::GetIntegrityMetadata(const KURL&) const { … }
bool DummyModulator::HasValidContext() { … }
void DummyModulator::ResolveDynamically(const ModuleRequest& module_request,
const ReferrerScriptInfo&,
ScriptPromiseResolver<IDLAny>*) { … }
ModuleImportMeta DummyModulator::HostGetImportMetaProperties(
v8::Local<v8::Module>) const { … }
ModuleType DummyModulator::ModuleTypeFromRequest(
const ModuleRequest& module_request) const { … }
ModuleScriptFetcher* DummyModulator::CreateModuleScriptFetcher(
ModuleScriptCustomFetchType,
base::PassKey<ModuleScriptLoader> pass_key) { … }
void DummyModulator::ProduceCacheModuleTreeTopLevel(ModuleScript*) { … }
}