Chromium Code Reviews| 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 CustomElementPendingMicrotaskSet_h | |
| 6 #define CustomElementPendingMicrotaskSet_h | |
| 7 | |
| 8 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h" | |
| 9 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace WebCore { | |
| 13 | |
| 14 class HTMLImportLoader; | |
| 15 | |
| 16 class CustomElementPendingMicrotaskSet : public RefCountedWillBeGarbageCollected Finalized<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
| |
| 17 WTF_MAKE_NONCOPYABLE(CustomElementPendingMicrotaskSet); | |
| 18 public: | |
| 19 static PassRefPtrWillBeRawPtr<CustomElementPendingMicrotaskSet> create() { r eturn adoptRefWillBeNoop(new CustomElementPendingMicrotaskSet()); } | |
| 20 | |
| 21 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomEl ementMicrotaskStep>); | |
| 22 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomEl ementMicrotaskImportStep>, bool importIsSync); | |
| 23 | |
| 24 void dispatch(); | |
| 25 void trace(Visitor*); | |
| 26 | |
| 27 #if !defined(NDEBUG) | |
| 28 void show(unsigned indent); | |
| 29 #endif | |
| 30 | |
| 31 private: | |
| 32 CustomElementPendingMicrotaskSet(); | |
| 33 | |
| 34 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_syncQueue; | |
| 35 RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; | |
| 36 }; | |
| 37 | |
| 38 } | |
| 39 | |
| 40 #endif // CustomElementPendingMicrotaskSet_h | |
| OLD | NEW |