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

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

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 16
17 class CustomElementMicrotaskDispatcher final : public NoBaseWillBeGarbageCollect ed<CustomElementMicrotaskDispatcher> { 17 class CustomElementMicrotaskDispatcher final : public NoBaseWillBeGarbageCollect ed<CustomElementMicrotaskDispatcher> {
18 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher);
18 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher); 19 WTF_MAKE_NONCOPYABLE(CustomElementMicrotaskDispatcher);
19 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher); 20 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskDispatcher);
20 public: 21 public:
21 static CustomElementMicrotaskDispatcher& instance(); 22 static CustomElementMicrotaskDispatcher& instance();
22 23
23 void enqueue(CustomElementCallbackQueue*); 24 void enqueue(CustomElementCallbackQueue*);
24 25
25 bool elementQueueIsEmpty() { return m_elements.isEmpty(); } 26 bool elementQueueIsEmpty() { return m_elements.isEmpty(); }
26 27
27 DECLARE_TRACE(); 28 DECLARE_TRACE();
(...skipping 13 matching lines...) Expand all
41 Resolving, 42 Resolving,
42 DispatchingCallbacks 43 DispatchingCallbacks
43 } m_phase; 44 } m_phase;
44 45
45 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue>> m_elements; 46 WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue>> m_elements;
46 }; 47 };
47 48
48 } // namespace blink 49 } // namespace blink
49 50
50 #endif // CustomElementMicrotaskDispatcher_h 51 #endif // CustomElementMicrotaskDispatcher_h
OLDNEW
« no previous file with comments | « Source/core/dom/custom/CustomElementException.h ('k') | Source/core/dom/custom/CustomElementMicrotaskImportStep.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698