| Index: Source/core/dom/Microtask.h
|
| diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/Microtask.h
|
| index 63e7b9589ab66dda45271d04591e39f219b587cb..5bea815d0a98dad1e2d58875b41a32a0b9ae102c 100644
|
| --- a/Source/core/dom/Microtask.h
|
| +++ b/Source/core/dom/Microtask.h
|
| @@ -31,14 +31,17 @@
|
| #ifndef Microtask_h
|
| #define Microtask_h
|
|
|
| -namespace WebCore {
|
| +#include "public/platform/WebThread.h"
|
| +#include "wtf/Functional.h"
|
| +#include "wtf/PassOwnPtr.h"
|
|
|
| -typedef void (*MicrotaskCallback)();
|
| +namespace WebCore {
|
|
|
| class Microtask {
|
| public:
|
| static void performCheckpoint();
|
| - static void enqueueMicrotask(MicrotaskCallback);
|
| + static void enqueueMicrotask(PassOwnPtr<blink::WebThread::Task>);
|
| + static void enqueueMicrotask(const Closure&);
|
|
|
| private:
|
| explicit Microtask();
|
|
|