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

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: 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h
diff --git a/Source/core/dom/Microtask.h b/Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h
similarity index 68%
copy from Source/core/dom/Microtask.h
copy to Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h
index 5bea815d0a98dad1e2d58875b41a32a0b9ae102c..2cc6085d2b96c5682080305e57e88b3069821121 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 PassRefPtrWillBeRawPtr<CustomElementAsyncImportMicrotaskQueue> create() { return adoptRefWillBeNoop(new CustomElementAsyncImportMicrotaskQueue()); }
+
+ void enqueue(PassOwnPtr<CustomElementMicrotaskImportStep>);
private:
- explicit Microtask();
+ CustomElementAsyncImportMicrotaskQueue() { }
+ virtual void doDispatch() OVERRIDE;
};
}
-#endif // Microtask_h
+#endif // CustomElementAsyncImportMicrotaskQueue_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/custom/CustomElementAsyncImportMicrotaskQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698