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

Unified Diff: Source/core/dom/custom/CustomElementSyncMicrotaskQueue.h

Issue 334253005: Custom Elements: Encapsulates Async and Sync Queues into one class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/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

Powered by Google App Engine
This is Rietveld 408576698