| 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 V0CustomElementMicrotaskQueueBase_h | 5 #ifndef V0CustomElementMicrotaskQueueBase_h |
| 6 #define V0CustomElementMicrotaskQueueBase_h | 6 #define V0CustomElementMicrotaskQueueBase_h |
| 7 | 7 |
| 8 #include "core/dom/custom/V0CustomElementMicrotaskStep.h" | 8 #include "core/dom/custom/V0CustomElementMicrotaskStep.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Vector.h" | 10 #include "platform/wtf/Vector.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class V0CustomElementMicrotaskQueueBase | 14 class V0CustomElementMicrotaskQueueBase |
| 15 : public GarbageCollectedFinalized<V0CustomElementMicrotaskQueueBase> { | 15 : public GarbageCollectedFinalized<V0CustomElementMicrotaskQueueBase> { |
| 16 WTF_MAKE_NONCOPYABLE(V0CustomElementMicrotaskQueueBase); | 16 WTF_MAKE_NONCOPYABLE(V0CustomElementMicrotaskQueueBase); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 virtual ~V0CustomElementMicrotaskQueueBase() {} | 19 virtual ~V0CustomElementMicrotaskQueueBase() {} |
| 20 | 20 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 V0CustomElementMicrotaskQueueBase() : in_dispatch_(false) {} | 31 V0CustomElementMicrotaskQueueBase() : in_dispatch_(false) {} |
| 32 virtual void DoDispatch() = 0; | 32 virtual void DoDispatch() = 0; |
| 33 | 33 |
| 34 HeapVector<Member<V0CustomElementMicrotaskStep>> queue_; | 34 HeapVector<Member<V0CustomElementMicrotaskStep>> queue_; |
| 35 bool in_dispatch_; | 35 bool in_dispatch_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| 39 | 39 |
| 40 #endif // V0CustomElementMicrotaskQueueBase_h | 40 #endif // V0CustomElementMicrotaskQueueBase_h |
| OLD | NEW |