Index: Source/core/dom/custom/CustomElementMicrotaskImportStep.h |
diff --git a/Source/core/dom/custom/CustomElementMicrotaskImportStep.h b/Source/core/dom/custom/CustomElementMicrotaskImportStep.h |
index 8b5d3f3741abb04059edc38e7b749e5cf209357f..dc63cd3a5566ebcbd03c43a4ccb75d4051f5331a 100644 |
--- a/Source/core/dom/custom/CustomElementMicrotaskImportStep.h |
+++ b/Source/core/dom/custom/CustomElementMicrotaskImportStep.h |
@@ -31,13 +31,16 @@ |
#ifndef CustomElementMicrotaskImportStep_h |
#define CustomElementMicrotaskImportStep_h |
-#include "core/dom/custom/CustomElementMicrotaskQueue.h" |
#include "core/dom/custom/CustomElementMicrotaskStep.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/PassOwnPtr.h" |
+#include "wtf/PassRefPtr.h" |
+#include "wtf/RefPtr.h" |
namespace WebCore { |
+class RefCountedCustomElementMicrotaskQueue; |
+ |
// Processes the Custom Elements in an HTML Import. This is a |
// composite step which processes the Custom Elements created by |
// parsing the import, and its sub-imports. |
@@ -47,23 +50,20 @@ namespace WebCore { |
class CustomElementMicrotaskImportStep : public CustomElementMicrotaskStep { |
WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskImportStep); |
public: |
- static PassOwnPtr<CustomElementMicrotaskImportStep> create(); |
- virtual ~CustomElementMicrotaskImportStep() { } |
- |
- // API for CustomElementScheduler |
- void enqueue(PassOwnPtr<CustomElementMicrotaskStep>); |
+ static PassOwnPtr<CustomElementMicrotaskImportStep> create(PassRefPtr<RefCountedCustomElementMicrotaskQueue>); |
+ virtual ~CustomElementMicrotaskImportStep(); |
// API for HTML Imports |
void importDidFinish(); |
private: |
- CustomElementMicrotaskImportStep() : m_importFinished(false) { } |
+ CustomElementMicrotaskImportStep(PassRefPtr<RefCountedCustomElementMicrotaskQueue>); |
// CustomElementMicrotaskStep |
virtual Result process() OVERRIDE FINAL; |
bool m_importFinished; |
- CustomElementMicrotaskQueue m_queue; |
+ RefPtr<RefCountedCustomElementMicrotaskQueue> m_queue; |
}; |
} |