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

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

Issue 598593006: Remove forward declarations from Source/core/dom/custom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Nits Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CustomElementMicrotaskDispatcher_h 5 #ifndef CustomElementMicrotaskDispatcher_h
6 #define CustomElementMicrotaskDispatcher_h 6 #define CustomElementMicrotaskDispatcher_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Noncopyable.h" 9 #include "wtf/Noncopyable.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
11 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CustomElementCallbackQueue; 15 class CustomElementCallbackQueue;
16 class CustomElementMicrotaskImportStep;
17 class CustomElementMicrotaskStep;
18 class Document;
19 class HTMLImportLoader;
20 16
21 class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollect ed<CustomElementMicrotaskDispatcher> { 17 class CustomElementMicrotaskDispatcher FINAL : public NoBaseWillBeGarbageCollect ed<CustomElementMicrotaskDispatcher> {
22 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); 18 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher);
23 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher); 19 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher);
24 public: 20 public:
25 static CustomElementMicrotaskDispatcher& instance(); 21 static CustomElementMicrotaskDispatcher& instance();
26 22
27 void enqueue(CustomElementCallbackQueue*); 23 void enqueue(CustomElementCallbackQueue*);
28 24
29 bool elementQueueIsEmpty() { return m_elements.isEmpty(); } 25 bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
(...skipping 12 matching lines...) Expand all
42 bool m_hasScheduledMicrotask; 38 bool m_hasScheduledMicrotask;
43 enum { 39 enum {
44 Quiescent, 40 Quiescent,
45 Resolving, 41 Resolving,
46 DispatchingCallbacks 42 DispatchingCallbacks
47 } m_phase; 43 } m_phase;
48 44
49 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements ; 45 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> > m_elements ;
50 }; 46 };
51 47
52 } 48 } // namespace blink
53 49
54 #endif // CustomElementMicrotaskDispatcher_h 50 #endif // CustomElementMicrotaskDispatcher_h
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementLifecycleCallbacks.h ('k') | Source/core/dom/custom/CustomElementMicrotaskImportStep.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698