Chromium Code Reviews| Index: Source/core/dom/custom/CustomElementPendingMicrotaskSet.h |
| diff --git a/Source/core/dom/custom/CustomElementPendingMicrotaskSet.h b/Source/core/dom/custom/CustomElementPendingMicrotaskSet.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ccf47bc9dc9a282bc2dfa40e7b2f03285d6f570d |
| --- /dev/null |
| +++ b/Source/core/dom/custom/CustomElementPendingMicrotaskSet.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CustomElementPendingMicrotaskSet_h |
| +#define CustomElementPendingMicrotaskSet_h |
| + |
| +#include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" |
| +#include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace WebCore { |
| + |
| +class HTMLImportLoader; |
| + |
| +class CustomElementPendingMicrotaskSet : public RefCountedWillBeGarbageCollectedFinalized<CustomElementPendingMicrotaskSet> { |
|
dominicc (has gone to gerrit)
2014/06/18 00:11:28
This isn't really a "set" in the mathematical or s
Hajime Morrita
2014/06/18 00:57:05
Noticed that this is the only object which dispatc
|
| + WTF_MAKE_NONCOPYABLE(CustomElementPendingMicrotaskSet); |
| +public: |
| + static PassRefPtrWillBeRawPtr<CustomElementPendingMicrotaskSet> create() { return adoptRefWillBeNoop(new CustomElementPendingMicrotaskSet()); } |
| + |
| + void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomElementMicrotaskStep>); |
| + void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomElementMicrotaskImportStep>, bool importIsSync); |
| + |
| + void dispatch(); |
| + void trace(Visitor*); |
| + |
| +#if !defined(NDEBUG) |
| + void show(unsigned indent); |
| +#endif |
| + |
| +private: |
| + CustomElementPendingMicrotaskSet(); |
| + |
| + RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_syncQueue; |
| + RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; |
| +}; |
| + |
| +} |
| + |
| +#endif // CustomElementPendingMicrotaskSet_h |