| Index: Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
|
| diff --git a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
|
| index a3f7669c94426d2b05ebba69e2bf1c65e59f7ae3..95e27dc72021242d27859d2c9e56784a58bf83de 100644
|
| --- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
|
| +++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
|
| @@ -5,28 +5,31 @@
|
| #ifndef CustomElementMicrotaskDispatcher_h
|
| #define CustomElementMicrotaskDispatcher_h
|
|
|
| -#include "core/dom/custom/CustomElementMicrotaskQueue.h"
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/PassOwnPtr.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace WebCore {
|
|
|
| +class CustomElementAsyncImportMicrotaskQueue;
|
| class CustomElementCallbackQueue;
|
| class CustomElementMicrotaskImportStep;
|
| +class CustomElementMicrotaskQueue;
|
| class CustomElementMicrotaskStep;
|
| class HTMLImportLoader;
|
|
|
| class CustomElementMicrotaskDispatcher {
|
| WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher);
|
| public:
|
| - ~CustomElementMicrotaskDispatcher() { }
|
| + ~CustomElementMicrotaskDispatcher();
|
|
|
| static CustomElementMicrotaskDispatcher& instance();
|
|
|
| void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskStep>);
|
| + void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskImportStep>);
|
| void enqueue(CustomElementCallbackQueue*);
|
|
|
| +
|
| void importDidFinish(CustomElementMicrotaskImportStep*);
|
|
|
| bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
|
| @@ -38,6 +41,7 @@ public:
|
| private:
|
| CustomElementMicrotaskDispatcher();
|
|
|
| + void willOrDidEnqueueStep();
|
| void ensureMicrotaskScheduled();
|
|
|
| static void dispatch();
|
| @@ -51,6 +55,7 @@ private:
|
| } m_phase;
|
|
|
| RefPtr<CustomElementMicrotaskQueue> m_resolutionAndImports;
|
| + RefPtr<CustomElementAsyncImportMicrotaskQueue> m_asyncImports;
|
| Vector<CustomElementCallbackQueue*> m_elements;
|
| };
|
|
|
|
|