| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CustomElementMicrotaskDispatcher_h | 5 #ifndef CustomElementMicrotaskDispatcher_h |
| 6 #define CustomElementMicrotaskDispatcher_h | 6 #define CustomElementMicrotaskDispatcher_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/Noncopyable.h" | 9 #include "wtf/Noncopyable.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
| 11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
| 12 | 12 |
| 13 namespace WebCore { | 13 namespace WebCore { |
| 14 | 14 |
| 15 class CustomElementAsyncImportMicrotaskQueue; | |
| 16 class CustomElementCallbackQueue; | 15 class CustomElementCallbackQueue; |
| 17 class CustomElementMicrotaskImportStep; | 16 class CustomElementMicrotaskImportStep; |
| 18 class CustomElementMicrotaskQueue; | 17 class CustomElementMicrotaskQueue; |
| 19 class CustomElementMicrotaskStep; | 18 class CustomElementMicrotaskStep; |
| 20 class HTMLImportLoader; | 19 class HTMLImportLoader; |
| 21 | 20 |
| 22 class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollect
ed<CustomElementMicrotaskDispatcher> { | 21 class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollect
ed<CustomElementMicrotaskDispatcher> { |
| 23 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); | 22 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); |
| 24 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher); | 23 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher); |
| 25 public: | 24 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 52 void doDispatch(); | 51 void doDispatch(); |
| 53 | 52 |
| 54 bool m_hasScheduledMicrotask; | 53 bool m_hasScheduledMicrotask; |
| 55 enum { | 54 enum { |
| 56 Quiescent, | 55 Quiescent, |
| 57 Resolving, | 56 Resolving, |
| 58 DispatchingCallbacks | 57 DispatchingCallbacks |
| 59 } m_phase; | 58 } m_phase; |
| 60 | 59 |
| 61 RefPtrWillBeMember<CustomElementMicrotaskQueue> m_resolutionAndImports; | 60 RefPtrWillBeMember<CustomElementMicrotaskQueue> m_resolutionAndImports; |
| 62 RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncImports; | |
| 63 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements
; | 61 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements
; |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } | 64 } |
| 67 | 65 |
| 68 #if !defined(NDEBUG) | 66 #if !defined(NDEBUG) |
| 69 void showCEMD(); | 67 void showCEMD(); |
| 70 #endif | 68 #endif |
| 71 | 69 |
| 72 #endif // CustomElementMicrotaskDispatcher_h | 70 #endif // CustomElementMicrotaskDispatcher_h |
| OLD | NEW |