| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CustomElementMicrotaskRunQueue_h | |
| 6 #define CustomElementMicrotaskRunQueue_h | |
| 7 | |
| 8 #include "platform/heap/Handle.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class CustomElementSyncMicrotaskQueue; | |
| 13 class CustomElementAsyncImportMicrotaskQueue; | |
| 14 class CustomElementMicrotaskStep; | |
| 15 class HTMLImportLoader; | |
| 16 | |
| 17 class CustomElementMicrotaskRunQueue : public GarbageCollected<CustomElementMicr
otaskRunQueue> { | |
| 18 public: | |
| 19 static CustomElementMicrotaskRunQueue* create() | |
| 20 { | |
| 21 return new CustomElementMicrotaskRunQueue; | |
| 22 } | |
| 23 | |
| 24 void enqueue(HTMLImportLoader* parentLoader, CustomElementMicrotaskStep*, bo
ol importIsSync); | |
| 25 void requestDispatchIfNeeded(); | |
| 26 bool isEmpty() const; | |
| 27 | |
| 28 DECLARE_TRACE(); | |
| 29 | |
| 30 private: | |
| 31 CustomElementMicrotaskRunQueue(); | |
| 32 | |
| 33 void dispatch(); | |
| 34 | |
| 35 Member<CustomElementSyncMicrotaskQueue> m_syncQueue; | |
| 36 Member<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; | |
| 37 bool m_dispatchIsPending; | |
| 38 }; | |
| 39 | |
| 40 } // namespace blink | |
| 41 | |
| 42 #endif // CustomElementMicrotaskRunQueue_h | |
| OLD | NEW |