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

Unified Diff: Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.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/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

Powered by Google App Engine
This is Rietveld 408576698