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 V0CustomElementMicrotaskRunQueue_h |
| 6 #define V0CustomElementMicrotaskRunQueue_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class V0CustomElementSyncMicrotaskQueue; |
| 13 class V0CustomElementAsyncImportMicrotaskQueue; |
| 14 class V0CustomElementMicrotaskStep; |
| 15 class HTMLImportLoader; |
| 16 |
| 17 class V0CustomElementMicrotaskRunQueue : public GarbageCollected<V0CustomElement
MicrotaskRunQueue> { |
| 18 public: |
| 19 static V0CustomElementMicrotaskRunQueue* create() |
| 20 { |
| 21 return new V0CustomElementMicrotaskRunQueue; |
| 22 } |
| 23 |
| 24 void enqueue(HTMLImportLoader* parentLoader, V0CustomElementMicrotaskStep*,
bool importIsSync); |
| 25 void requestDispatchIfNeeded(); |
| 26 bool isEmpty() const; |
| 27 |
| 28 DECLARE_TRACE(); |
| 29 |
| 30 private: |
| 31 V0CustomElementMicrotaskRunQueue(); |
| 32 |
| 33 void dispatch(); |
| 34 |
| 35 Member<V0CustomElementSyncMicrotaskQueue> m_syncQueue; |
| 36 Member<V0CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; |
| 37 bool m_dispatchIsPending; |
| 38 }; |
| 39 |
| 40 } // namespace blink |
| 41 |
| 42 #endif // V0CustomElementMicrotaskRunQueue_h |
OLD | NEW |