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

Side by Side Diff: Source/core/dom/custom/CustomElementMicrotaskStepDispatcher.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 CustomElementMicrotaskStepDispatcher_h
6 #define CustomElementMicrotaskStepDispatcher_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 CustomElementMicrotaskStepDispatcher : public RefCountedWillBeGarbageColle ctedFinalized<CustomElementMicrotaskStepDispatcher> {
17 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskStepDispatcher);
18 public:
19 static PassRefPtrWillBeRawPtr<CustomElementMicrotaskStepDispatcher> create() { return adoptRefWillBeNoop(new CustomElementMicrotaskStepDispatcher()); }
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 CustomElementMicrotaskStepDispatcher();
33
34 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_syncQueue;
35 RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue;
36 };
37
38 }
39
40 #endif // CustomElementMicrotaskStepDispatcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698