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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.h

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 years, 8 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: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.h
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.h b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.h
new file mode 100644
index 0000000000000000000000000000000000000000..068175df34d60295b30873ada7a78ebb38b98e28
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskRunQueue.h
@@ -0,0 +1,42 @@
+// 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 V0CustomElementMicrotaskRunQueue_h
+#define V0CustomElementMicrotaskRunQueue_h
+
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class V0CustomElementSyncMicrotaskQueue;
+class V0CustomElementAsyncImportMicrotaskQueue;
+class V0CustomElementMicrotaskStep;
+class HTMLImportLoader;
+
+class V0CustomElementMicrotaskRunQueue : public GarbageCollected<V0CustomElementMicrotaskRunQueue> {
+public:
+ static V0CustomElementMicrotaskRunQueue* create()
+ {
+ return new V0CustomElementMicrotaskRunQueue;
+ }
+
+ void enqueue(HTMLImportLoader* parentLoader, V0CustomElementMicrotaskStep*, bool importIsSync);
+ void requestDispatchIfNeeded();
+ bool isEmpty() const;
+
+ DECLARE_TRACE();
+
+private:
+ V0CustomElementMicrotaskRunQueue();
+
+ void dispatch();
+
+ Member<V0CustomElementSyncMicrotaskQueue> m_syncQueue;
+ Member<V0CustomElementAsyncImportMicrotaskQueue> m_asyncQueue;
+ bool m_dispatchIsPending;
+};
+
+} // namespace blink
+
+#endif // V0CustomElementMicrotaskRunQueue_h

Powered by Google App Engine
This is Rietveld 408576698