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" | |
11 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
12 | 11 |
13 namespace blink { | 12 namespace blink { |
14 | 13 |
15 class CustomElementCallbackQueue; | 14 class CustomElementCallbackQueue; |
16 | 15 |
17 class CustomElementMicrotaskDispatcher final : public GarbageCollected<CustomEle
mentMicrotaskDispatcher> { | 16 class CustomElementMicrotaskDispatcher final : public GarbageCollected<CustomEle
mentMicrotaskDispatcher> { |
18 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); | 17 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); |
19 public: | 18 public: |
20 static CustomElementMicrotaskDispatcher& instance(); | 19 static CustomElementMicrotaskDispatcher& instance(); |
(...skipping 19 matching lines...) Expand all Loading... |
40 Resolving, | 39 Resolving, |
41 DispatchingCallbacks | 40 DispatchingCallbacks |
42 } m_phase; | 41 } m_phase; |
43 | 42 |
44 HeapVector<Member<CustomElementCallbackQueue>> m_elements; | 43 HeapVector<Member<CustomElementCallbackQueue>> m_elements; |
45 }; | 44 }; |
46 | 45 |
47 } // namespace blink | 46 } // namespace blink |
48 | 47 |
49 #endif // CustomElementMicrotaskDispatcher_h | 48 #endif // CustomElementMicrotaskDispatcher_h |
OLD | NEW |