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

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

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT. Created 6 years, 8 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/CustomElementMicrotaskQueue.h
diff --git a/Source/core/dom/custom/CustomElementMicrotaskQueue.h b/Source/core/dom/custom/CustomElementMicrotaskQueue.h
index 4ae22d21bdd43ed7f982b623ba47de423995e831..0fc03c1b23a00796f031c9ae7cff523476a8b50e 100644
--- a/Source/core/dom/custom/CustomElementMicrotaskQueue.h
+++ b/Source/core/dom/custom/CustomElementMicrotaskQueue.h
@@ -34,22 +34,28 @@
#include "core/dom/custom/CustomElementMicrotaskStep.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
+#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
-class CustomElementMicrotaskQueue {
+class CustomElementMicrotaskQueue : public RefCounted<CustomElementMicrotaskQueue> {
WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskQueue);
public:
- CustomElementMicrotaskQueue() { }
+ static PassRefPtr<CustomElementMicrotaskQueue> create() { return adoptRef(new CustomElementMicrotaskQueue()); }
+
- bool isEmpty() { return m_queue.isEmpty(); }
+ bool isEmpty() const { return m_queue.isEmpty(); }
void enqueue(PassOwnPtr<CustomElementMicrotaskStep>);
typedef CustomElementMicrotaskStep::Result Result;
Result dispatch();
private:
+ CustomElementMicrotaskQueue() { }
+
Vector<OwnPtr<CustomElementMicrotaskStep> > m_queue;
};
« no previous file with comments | « Source/core/dom/custom/CustomElementMicrotaskImportStep.cpp ('k') | Source/core/dom/custom/CustomElementMicrotaskQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698