| Index: third_party/WebKit/Source/core/dom/Modulator.h
|
| diff --git a/third_party/WebKit/Source/core/dom/Modulator.h b/third_party/WebKit/Source/core/dom/Modulator.h
|
| index ad1d58268c8499f258563614d9c20449aefc4e11..ae0f66a38d2598214250a8ca881c7c9e156946a7 100644
|
| --- a/third_party/WebKit/Source/core/dom/Modulator.h
|
| +++ b/third_party/WebKit/Source/core/dom/Modulator.h
|
| @@ -8,6 +8,7 @@
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "bindings/core/v8/V8PerContextData.h"
|
| #include "core/CoreExport.h"
|
| +#include "core/dom/AncestorList.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/loader/fetch/AccessControlStatus.h"
|
| #include "platform/weborigin/KURL.h"
|
| @@ -69,6 +70,23 @@ class CORE_EXPORT Modulator : public GarbageCollectedFinalized<Modulator>,
|
| virtual ReferrerPolicy GetReferrerPolicy() = 0;
|
| virtual SecurityOrigin* GetSecurityOrigin() = 0;
|
|
|
| + // https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-module-script-tree
|
| + virtual void FetchTree(const ModuleScriptFetchRequest&,
|
| + ModuleTreeClient*) = 0;
|
| +
|
| + // https://html.spec.whatwg.org/#internal-module-script-graph-fetching-procedure
|
| + virtual void FetchTreeInternal(const ModuleScriptFetchRequest&,
|
| + const AncestorList&,
|
| + ModuleGraphLevel,
|
| + ModuleTreeClient*) = 0;
|
| +
|
| + // Asynchronously retrieve a module script from the module map, or fetch it
|
| + // and put it in the map if it's not there already.
|
| + // https://html.spec.whatwg.org/#fetch-a-single-module-script
|
| + virtual void FetchSingle(const ModuleScriptFetchRequest&,
|
| + ModuleGraphLevel,
|
| + SingleModuleClient*) = 0;
|
| +
|
| // Synchronously retrieves a single module script from existing module map
|
| // entry.
|
| virtual ModuleScript* GetFetchedModuleScript(const KURL&) = 0;
|
|
|