Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: Source/core/dom/custom/CustomElementPendingMicrotaskSet.h

Issue 334253005: Custom Elements: Encapsulates Async and Sync Queues into one class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698