Index: Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
similarity index 68% |
copy from Source/core/dom/Microtask.h |
copy to Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
index 5bea815d0a98dad1e2d58875b41a32a0b9ae102c..2cc6085d2b96c5682080305e57e88b3069821121 100644 |
--- a/Source/core/dom/Microtask.h |
+++ b/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * Copyright (C) 2014 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -28,25 +28,26 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef Microtask_h |
-#define Microtask_h |
+#ifndef CustomElementAsyncImportMicrotaskQueue_h |
+#define CustomElementAsyncImportMicrotaskQueue_h |
-#include "public/platform/WebThread.h" |
-#include "wtf/Functional.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "core/dom/custom/CustomElementMicrotaskQueue.h" |
namespace WebCore { |
-class Microtask { |
+class CustomElementMicrotaskImportStep; |
+ |
+class CustomElementAsyncImportMicrotaskQueue : public CustomElementMicrotaskQueueBase { |
public: |
- static void performCheckpoint(); |
- static void enqueueMicrotask(PassOwnPtr<blink::WebThread::Task>); |
- static void enqueueMicrotask(const Closure&); |
+ static PassRefPtrWillBeRawPtr<CustomElementAsyncImportMicrotaskQueue> create() { return adoptRefWillBeNoop(new CustomElementAsyncImportMicrotaskQueue()); } |
+ |
+ void enqueue(PassOwnPtr<CustomElementMicrotaskImportStep>); |
private: |
- explicit Microtask(); |
+ CustomElementAsyncImportMicrotaskQueue() { } |
+ virtual void doDispatch() OVERRIDE; |
}; |
} |
-#endif // Microtask_h |
+#endif // CustomElementAsyncImportMicrotaskQueue_h |