| 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 22517c73622907a69f17327d9a7ead0d4a4545aa..bae8f36969073c26fc3cdc22ab11856970195c73 100644
|
| --- a/third_party/WebKit/Source/core/dom/Modulator.h
|
| +++ b/third_party/WebKit/Source/core/dom/Modulator.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef Modulator_h
|
| #define Modulator_h
|
|
|
| +#include "bindings/core/v8/V8PerContextData.h"
|
| #include "core/CoreExport.h"
|
| #include "platform/heap/Handle.h"
|
| #include "platform/weborigin/KURL.h"
|
| @@ -39,11 +40,18 @@ enum class ModuleGraphLevel { TopLevelModuleFetch, DependentModuleFetch };
|
| // https://html.spec.whatwg.org/#environment-settings-object
|
| //
|
| // A Modulator also serves as an entry point for various module spec algorithms.
|
| -class CORE_EXPORT Modulator : public GarbageCollectedFinalized<Modulator> {
|
| +class CORE_EXPORT Modulator : public GarbageCollectedFinalized<Modulator>,
|
| + public V8PerContextData::Data {
|
| + USING_GARBAGE_COLLECTED_MIXIN(Modulator);
|
| +
|
| public:
|
| static Modulator* from(LocalFrame*);
|
| + static Modulator* from(V8PerContextData*);
|
| virtual ~Modulator();
|
|
|
| + static void setModulator(LocalFrame*, Modulator*);
|
| + static void clearModulator(LocalFrame*);
|
| +
|
| DEFINE_INLINE_VIRTUAL_TRACE() {}
|
|
|
| virtual ScriptModuleResolver* scriptModuleResolver() = 0;
|
|
|