Return a Promise from HTMLMediaElement.play()
[WebKit-https.git] / Source / WebCore / dom / GenericEventQueue.h
index d3a038a..b111b01 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef GenericEventQueue_h
 #define GenericEventQueue_h
 
+#include "GenericTaskQueue.h"
 #include <wtf/Deque.h>
 #include <wtf/Forward.h>
 #include <wtf/RefPtr.h>
@@ -52,15 +53,11 @@ public:
     void resume();
 
 private:
-    static Timer& sharedTimer();
-    static void sharedTimerFired();
-    static Deque<WeakPtr<GenericEventQueue>>& pendingQueues();
-
     void dispatchOneEvent();
 
     EventTarget& m_owner;
+    GenericTaskQueue<Timer> m_taskQueue;
     Deque<RefPtr<Event>> m_pendingEvents;
-    WeakPtrFactory<GenericEventQueue> m_weakPtrFactory;
     bool m_isClosed;
     bool m_isSuspended { false };
 };