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

Side by Side Diff: third_party/WebKit/Source/core/dom/custom/CustomElementMicrotaskRunQueue.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 CustomElementMicrotaskRunQueue_h 5 #ifndef CustomElementMicrotaskRunQueue_h
6 #define CustomElementMicrotaskRunQueue_h 6 #define CustomElementMicrotaskRunQueue_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/RefCounted.h" 9 #include "wtf/RefCounted.h"
10 #include "wtf/WeakPtr.h" 10 #include "wtf/WeakPtr.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CustomElementSyncMicrotaskQueue; 14 class CustomElementSyncMicrotaskQueue;
15 class CustomElementAsyncImportMicrotaskQueue; 15 class CustomElementAsyncImportMicrotaskQueue;
16 class CustomElementMicrotaskStep; 16 class CustomElementMicrotaskStep;
17 class HTMLImportLoader; 17 class HTMLImportLoader;
18 18
19 class CustomElementMicrotaskRunQueue : public RefCountedWillBeGarbageCollectedFi nalized<CustomElementMicrotaskRunQueue> { 19 class CustomElementMicrotaskRunQueue : public GarbageCollectedFinalized<CustomEl ementMicrotaskRunQueue> {
20 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskRunQueue)
21 public: 20 public:
22 static PassRefPtrWillBeRawPtr<CustomElementMicrotaskRunQueue> create() { ret urn adoptRefWillBeNoop(new CustomElementMicrotaskRunQueue()); } 21 static RawPtr<CustomElementMicrotaskRunQueue> create() { return (new CustomE lementMicrotaskRunQueue()); }
23 22
24 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtrWillBeRawPtr<CustomEl ementMicrotaskStep>, bool importIsSync); 23 void enqueue(HTMLImportLoader* parentLoader, RawPtr<CustomElementMicrotaskSt ep>, bool importIsSync);
25 void requestDispatchIfNeeded(); 24 void requestDispatchIfNeeded();
26 bool isEmpty() const; 25 bool isEmpty() const;
27 26
28 DECLARE_TRACE(); 27 DECLARE_TRACE();
29 28
30 private: 29 private:
31 static void dispatchIfAlive(WeakPtrWillBeWeakPersistent<CustomElementMicrota skRunQueue>); 30 static void dispatchIfAlive(WeakPersistent<CustomElementMicrotaskRunQueue>);
32 31
33 CustomElementMicrotaskRunQueue(); 32 CustomElementMicrotaskRunQueue();
34 33
35 void dispatch(); 34 void dispatch();
36 35
37 RefPtrWillBeMember<CustomElementSyncMicrotaskQueue> m_syncQueue; 36 Member<CustomElementSyncMicrotaskQueue> m_syncQueue;
38 RefPtrWillBeMember<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; 37 Member<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue;
39 bool m_dispatchIsPending; 38 bool m_dispatchIsPending;
40 #if !ENABLE(OILPAN) 39 #if !ENABLE(OILPAN)
41 WeakPtrFactory<CustomElementMicrotaskRunQueue> m_weakFactory; 40 WeakPtrFactory<CustomElementMicrotaskRunQueue> m_weakFactory;
42 #endif 41 #endif
43 }; 42 };
44 43
45 } // namespace blink 44 } // namespace blink
46 45
47 #endif // CustomElementMicrotaskRunQueue_h 46 #endif // CustomElementMicrotaskRunQueue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698