Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / custom / CustomElementMicrotaskDispatcher.h
index 961074f..f7e9b98 100644 (file)
 #include "wtf/PassOwnPtr.h"
 #include "wtf/Vector.h"
 
-namespace WebCore {
+namespace blink {
 
 class CustomElementCallbackQueue;
 class CustomElementMicrotaskImportStep;
 class CustomElementMicrotaskStep;
-class CustomElementMicrotaskStepDispatcher;
+class Document;
 class HTMLImportLoader;
 
 class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollected<CustomElementMicrotaskDispatcher> {
@@ -24,27 +24,16 @@ class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollect
 public:
     static CustomElementMicrotaskDispatcher& instance();
 
-    void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomElementMicrotaskStep>);
-    void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomElementMicrotaskImportStep>, bool importIsSync);
-
     void enqueue(CustomElementCallbackQueue*);
 
-
-    void importDidFinish(CustomElementMicrotaskImportStep*);
-
     bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
 
     void trace(Visitor*);
 
-#if !defined(NDEBUG)
-    void show();
-#endif
-
 private:
     CustomElementMicrotaskDispatcher();
 
     void ensureMicrotaskScheduledForElementQueue();
-    void ensureMicrotaskScheduledForMicrotaskSteps();
     void ensureMicrotaskScheduled();
 
     static void dispatch();
@@ -57,14 +46,9 @@ private:
         DispatchingCallbacks
     } m_phase;
 
-    RefPtrWillBeMember<CustomElementMicrotaskStepDispatcher> m_steps;
     WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements;
 };
 
 }
 
-#if !defined(NDEBUG)
-void showCEMD();
-#endif
-
 #endif // CustomElementMicrotaskDispatcher_h