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

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: Switched to two-queue approach 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..fc26504687be5df36a5cb26925178e20360dfa78 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.h
@@ -5,27 +5,29 @@
#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(CustomElementCallbackQueue*);
+ void enqueueAsyncImportStep(PassOwnPtr<CustomElementMicrotaskImportStep>);
dominicc (has gone to gerrit) 2014/05/25 23:55:10 Why does the signature differ from enqueue(HTMLImp
Hajime Morrita 2014/05/27 21:12:47 As async steps go to top-level global queueue, the
dominicc (has gone to gerrit) 2014/05/27 23:41:25 Maybe we should name the parameter in the signatur
void importDidFinish(CustomElementMicrotaskImportStep*);
@@ -51,6 +53,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