#include "third_party/blink/renderer/core/script/modulator_impl_base.h"
#include "base/feature_list.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/devtools/console_message.mojom-blink.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "third_party/blink/renderer/bindings/core/v8/script_function.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_script_fetch_request.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_tree_linker.h"
#include "third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h"
#include "third_party/blink/renderer/core/loader/subresource_integrity_helper.h"
#include "third_party/blink/renderer/core/script/dynamic_module_resolver.h"
#include "third_party/blink/renderer/core/script/import_map.h"
#include "third_party/blink/renderer/core/script/js_module_script.h"
#include "third_party/blink/renderer/core/script/module_map.h"
#include "third_party/blink/renderer/core/script/module_record_resolver_impl.h"
#include "third_party/blink/renderer/core/script/parsed_specifier.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/loader/subresource_integrity.h"
namespace blink {
ExecutionContext* ModulatorImplBase::GetExecutionContext() const { … }
ModulatorImplBase::ModulatorImplBase(ScriptState* script_state)
: … { … }
ModulatorImplBase::~ModulatorImplBase() { … }
bool ModulatorImplBase::IsScriptingDisabled() const { … }
mojom::blink::V8CacheOptions ModulatorImplBase::GetV8CacheOptions() const { … }
void ModulatorImplBase::FetchTree(
const KURL& url,
ModuleType module_type,
ResourceFetcher* fetch_client_settings_object_fetcher,
mojom::blink::RequestContextType context_type,
network::mojom::RequestDestination destination,
const ScriptFetchOptions& options,
ModuleScriptCustomFetchType custom_fetch_type,
ModuleTreeClient* client,
String referrer) { … }
void ModulatorImplBase::FetchDescendantsForInlineScript(
ModuleScript* module_script,
ResourceFetcher* fetch_client_settings_object_fetcher,
mojom::blink::RequestContextType context_type,
network::mojom::RequestDestination destination,
ModuleTreeClient* client) { … }
void ModulatorImplBase::FetchSingle(
const ModuleScriptFetchRequest& request,
ResourceFetcher* fetch_client_settings_object_fetcher,
ModuleGraphLevel level,
ModuleScriptCustomFetchType custom_fetch_type,
SingleModuleClient* client) { … }
ModuleScript* ModulatorImplBase::GetFetchedModuleScript(
const KURL& url,
ModuleType module_type) { … }
KURL ModulatorImplBase::ResolveModuleSpecifier(const String& specifier,
const KURL& base_url,
String* failure_reason) { … }
bool ModulatorImplBase::HasValidContext() { … }
void ModulatorImplBase::ResolveDynamically(
const ModuleRequest& module_request,
const ReferrerScriptInfo& referrer_info,
ScriptPromiseResolver<IDLAny>* resolver) { … }
ModuleImportMeta ModulatorImplBase::HostGetImportMetaProperties(
v8::Local<v8::Module> record) const { … }
String ModulatorImplBase::GetIntegrityMetadataString(const KURL& url) const { … }
IntegrityMetadataSet ModulatorImplBase::GetIntegrityMetadata(
const KURL& url) const { … }
ModuleType ModulatorImplBase::ModuleTypeFromRequest(
const ModuleRequest& module_request) const { … }
void ModulatorImplBase::ProduceCacheModuleTreeTopLevel(
ModuleScript* module_script) { … }
void ModulatorImplBase::ProduceCacheModuleTree(
ModuleScript* module_script,
HeapHashSet<Member<const ModuleScript>>* discovered_set) { … }
void ModulatorImplBase::Trace(Visitor* visitor) const { … }
}