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

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

Issue 288323004: HTML Imports: Get rid of needsProcessOrStop() from dom/custom/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/CustomElementMicrotaskDispatcher.h
diff --git a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
index a3f7669c94426d2b05ebba69e2bf1c65e59f7ae3..95e27dc72021242d27859d2c9e56784a58bf83de 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
@@ -5,28 +5,31 @@
#ifndef CustomElementMicrotaskDispatcher_h
#define CustomElementMicrotaskDispatcher_h
-#include "core/dom/custom/CustomElementMicrotaskQueue.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
+class CustomElementAsyncImportMicrotaskQueue;
class CustomElementCallbackQueue;
class CustomElementMicrotaskImportStep;
+class CustomElementMicrotaskQueue;
class CustomElementMicrotaskStep;
class HTMLImportLoader;
class CustomElementMicrotaskDispatcher {
WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher);
public:
- ~CustomElementMicrotaskDispatcher() { }
+ ~CustomElementMicrotaskDispatcher();
static CustomElementMicrotaskDispatcher& instance();
void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskStep>);
+ void enqueue(HTMLImportLoader*, PassOwnPtr<CustomElementMicrotaskImportStep>);
void enqueue(CustomElementCallbackQueue*);
+
void importDidFinish(CustomElementMicrotaskImportStep*);
bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
@@ -38,6 +41,7 @@ public:
private:
CustomElementMicrotaskDispatcher();
+ void willOrDidEnqueueStep();
void ensureMicrotaskScheduled();
static void dispatch();
@@ -51,6 +55,7 @@ private:
} m_phase;
RefPtr<CustomElementMicrotaskQueue> m_resolutionAndImports;
+ RefPtr<CustomElementAsyncImportMicrotaskQueue> m_asyncImports;
Vector<CustomElementCallbackQueue*> m_elements;
};

Powered by Google App Engine
This is Rietveld 408576698