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

Side by Side Diff: Source/core/dom/custom/CustomElementPendingMicrotaskSet.h

Issue 334253005: Custom Elements: Encapsulates Async and Sync Queues into one class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CustomElementPendingMicrotaskSet_h
6 #define CustomElementPendingMicrotaskSet_h
7
8 #include "core/dom/custom/CustomElementAsyncImportMicrotaskQueue.h"
9 #include "core/dom/custom/CustomElementSyncMicrotaskQueue.h"
10 #include "platform/heap/Handle.h"
11
12 namespace WebCore {
13
14 class HTMLImportLoader;
15
16 class CustomElementPendingMicrotaskSet : public RefCountedWillBeGarbageCollected Finalized<CustomElementPendingMicrotaskSet> {
dominicc (has gone to gerrit) 2014/06/18 00:11:28 This isn't really a "set" in the mathematical or s
Hajime Morrita 2014/06/18 00:57:05 Noticed that this is the only object which dispatc
17 WTF_MAKE_NONCOPYABLE(CustomElementPendingMicrotaskSet);
18 public:
19 static PassRefPtrWillBeRawPtr<CustomElementPendingMicrotaskSet> create() { r eturn adoptRefWillBeNoop(new CustomElementPendingMicrotaskSet()); }
20
21 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomEl ementMicrotaskStep>);
22 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomEl ementMicrotaskImportStep>, bool importIsSync);
23
24 void dispatch();
25 void trace(Visitor*);
26
27 #if !defined(NDEBUG)
28 void show(unsigned indent);
29 #endif
30
31 private:
32 CustomElementPendingMicrotaskSet();
33
34 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_syncQueue;
35 RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue;
36 };
37
38 }
39
40 #endif // CustomElementPendingMicrotaskSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698