diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h b/chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h index 68afcbcda9e..468b5f4a867 100644 --- a/chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h +++ b/chromium/third_party/blink/renderer/core/loader/modulescript/module_tree_linker_registry.h @@ -5,9 +5,12 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_MODULESCRIPT_MODULE_TREE_LINKER_REGISTRY_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_MODULESCRIPT_MODULE_TREE_LINKER_REGISTRY_H_ +#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink-forward.h" #include "third_party/blink/renderer/core/core_export.h" +#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h" #include "third_party/blink/renderer/platform/bindings/name_client.h" #include "third_party/blink/renderer/platform/heap/handle.h" +#include "third_party/blink/renderer/platform/weborigin/kurl.h" namespace blink { @@ -19,6 +22,30 @@ class CORE_EXPORT ModuleTreeLinkerRegistry final public NameClient { public: ModuleTreeLinkerRegistry() = default; + ~ModuleTreeLinkerRegistry() final = default; + + // https://html.spec.whatwg.org/C/#fetch-a-module-script-tree + // https://html.spec.whatwg.org/C/#fetch-a-module-worker-script-tree + // https://html.spec.whatwg.org/C/#fetch-an-import()-module-script-graph + void Fetch(const KURL& url, + const ModuleType&, + ResourceFetcher* fetch_client_settings_object_fetcher, + mojom::blink::RequestContextType context_type, + network::mojom::RequestDestination destination, + const ScriptFetchOptions&, + Modulator*, + ModuleScriptCustomFetchType, + ModuleTreeClient*); + + // https://html.spec.whatwg.org/C/#fetch-an-inline-module-script-graph + void FetchDescendantsForInlineScript( + ModuleScript*, + ResourceFetcher* fetch_client_settings_object_fetcher, + mojom::blink::RequestContextType context_type, + network::mojom::RequestDestination destination, + Modulator*, + ModuleScriptCustomFetchType, + ModuleTreeClient*); void Trace(Visitor*) const; const char* NameInHeapSnapshot() const override { @@ -27,8 +54,8 @@ class CORE_EXPORT ModuleTreeLinkerRegistry final private: friend class ModuleTreeLinker; - void AddFetcher(ModuleTreeLinker*); - void ReleaseFinishedFetcher(ModuleTreeLinker*); + void AddLinker(ModuleTreeLinker*); + void ReleaseFinishedLinker(ModuleTreeLinker*); HeapHashSet<Member<ModuleTreeLinker>> active_tree_linkers_; }; |