Chromium Code Reviews| Index: Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h |
| diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h |
| similarity index 73% |
| copy from Source/core/dom/Microtask.h |
| copy to Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h |
| index 5bea815d0a98dad1e2d58875b41a32a0b9ae102c..91ee392f8f1265610d7a53d477b30a880b06d8a9 100644 |
| --- a/Source/core/dom/Microtask.h |
| +++ b/Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h |
| @@ -1,5 +1,5 @@ |
| /* |
|
dominicc (has gone to gerrit)
2014/06/17 00:29:23
Use the short copyright notice on new files.
|
| - * Copyright (C) 2013 Google Inc. All rights reserved. |
| + * Copyright (C) 2014 Google Inc. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
| @@ -28,25 +28,24 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef Microtask_h |
| -#define Microtask_h |
| +#ifndef CustomElementSyncMicrotaskQueue_h |
| +#define CustomElementSyncMicrotaskQueue_h |
| -#include "public/platform/WebThread.h" |
| -#include "wtf/Functional.h" |
| -#include "wtf/PassOwnPtr.h" |
| +#include "core/dom/custom/CustomElementMicrotaskQueueBase.h" |
| namespace WebCore { |
| -class Microtask { |
| +class CustomElementSyncMicrotaskQueue : public CustomElementMicrotaskQueueBase { |
| public: |
| - static void performCheckpoint(); |
| - static void enqueueMicrotask(PassOwnPtr<blink::WebThread::Task>); |
| - static void enqueueMicrotask(const Closure&); |
| + static PassRefPtrWillBeRawPtr<CustomElementSyncMicrotaskQueue> create() { return adoptRefWillBeNoop(new CustomElementSyncMicrotaskQueue()); } |
| + |
| + void enqueue(PassOwnPtrWillBeRawPtr<CustomElementMicrotaskStep>); |
| private: |
| - explicit Microtask(); |
| + CustomElementSyncMicrotaskQueue() { } |
| + virtual void doDispatch(); |
| }; |
| } |
| -#endif // Microtask_h |
| +#endif |