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

Unified Diff: Source/core/dom/Microtask.h

Issue 142193004: Create & use microtask work queue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cr changes Created 6 years, 11 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/Microtask.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/Microtask.h
index 27f72cbec01e5795593d3e545a3b5ca3e5c046fa..d6dc5579a12015ed47b46f0252ed33aae8540cce 100644
--- a/Source/core/dom/Microtask.h
+++ b/Source/core/dom/Microtask.h
@@ -33,9 +33,12 @@
namespace WebCore {
+typedef void (*MicrotaskCallback)();
+
class Microtask {
public:
- static void performCheckpoint();
+ static void performMicrotaskCheckpoint();
+ static void enqueueMicrotask(MicrotaskCallback);
private:
explicit Microtask();

Powered by Google App Engine
This is Rietveld 408576698