Chromium Code Reviews| Index: Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
| diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
| similarity index 69% |
| copy from Source/core/dom/Microtask.h |
| copy to Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
| index 5bea815d0a98dad1e2d58875b41a32a0b9ae102c..99cd58ac2d89593494bed9b8fffff654ec658532 100644 |
| --- a/Source/core/dom/Microtask.h |
| +++ b/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h |
| @@ -1,5 +1,5 @@ |
| /* |
| - * 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,26 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef Microtask_h |
| -#define Microtask_h |
| +#ifndef CustomElementAsyncImportMicrotaskQueue_h |
| +#define CustomElementAsyncImportMicrotaskQueue_h |
| -#include "public/platform/WebThread.h" |
| -#include "wtf/Functional.h" |
| -#include "wtf/PassOwnPtr.h" |
| +#include "core/dom/custom/CustomElementMicrotaskQueue.h" |
| namespace WebCore { |
| -class Microtask { |
| +class CustomElementMicrotaskImportStep; |
| + |
| +class CustomElementAsyncImportMicrotaskQueue : public CustomElementMicrotaskQueueBase { |
| public: |
| - static void performCheckpoint(); |
| - static void enqueueMicrotask(PassOwnPtr<blink::WebThread::Task>); |
| - static void enqueueMicrotask(const Closure&); |
| + static PassRefPtr<CustomElementAsyncImportMicrotaskQueue> create() { return adoptRef(new CustomElementAsyncImportMicrotaskQueue()); } |
| + |
| + void enqueue(PassOwnPtr<CustomElementMicrotaskImportStep>); |
| private: |
| - explicit Microtask(); |
| + CustomElementAsyncImportMicrotaskQueue() { } |
| + virtual void doDispatch(); |
|
dominicc (has gone to gerrit)
2014/05/25 23:55:10
Does this need OVERRIDE?
|
| }; |
| } |
| -#endif // Microtask_h |
| +#endif // CustomElementAsyncImportMicrotaskQueue_h |