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

Side by Side Diff: sky/engine/core/dom/custom/CustomElementMicrotaskRunQueue.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "platform/heap/Handle.h" 9 #include "wtf/PassOwnPtr.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.h"
11 #include "wtf/RefPtr.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class CustomElementSyncMicrotaskQueue; 15 class CustomElementSyncMicrotaskQueue;
15 class CustomElementAsyncImportMicrotaskQueue; 16 class CustomElementAsyncImportMicrotaskQueue;
16 class CustomElementMicrotaskStep; 17 class CustomElementMicrotaskStep;
17 class HTMLImportLoader; 18 class HTMLImportLoader;
18 19
19 class CustomElementMicrotaskRunQueue : public RefCounted<CustomElementMicrotaskR unQueue> { 20 class CustomElementMicrotaskRunQueue : public RefCounted<CustomElementMicrotaskR unQueue> {
20 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CustomElementMicrotaskRunQueue)
21 public: 21 public:
22 static PassRefPtr<CustomElementMicrotaskRunQueue> create() { return adoptRef (new CustomElementMicrotaskRunQueue()); } 22 static PassRefPtr<CustomElementMicrotaskRunQueue> create() { return adoptRef (new CustomElementMicrotaskRunQueue()); }
23 ~CustomElementMicrotaskRunQueue();
23 24
24 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtr<CustomElementMicrota skStep>, bool importIsSync); 25 void enqueue(HTMLImportLoader* parentLoader, PassOwnPtr<CustomElementMicrota skStep>, bool importIsSync);
25 void requestDispatchIfNeeded(); 26 void requestDispatchIfNeeded();
26 bool isEmpty() const; 27 bool isEmpty() const;
27 28
28 void trace(Visitor*);
29
30 private: 29 private:
31 CustomElementMicrotaskRunQueue(); 30 CustomElementMicrotaskRunQueue();
32 31
33 void dispatch(); 32 void dispatch();
34 33
35 RefPtr<CustomElementSyncMicrotaskQueue> m_syncQueue; 34 RefPtr<CustomElementSyncMicrotaskQueue> m_syncQueue;
36 RefPtr<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue; 35 RefPtr<CustomElementAsyncImportMicrotaskQueue> m_asyncQueue;
37 bool m_dispatchIsPending; 36 bool m_dispatchIsPending;
38 37
39 base::WeakPtrFactory<CustomElementMicrotaskRunQueue> m_weakFactory; 38 base::WeakPtrFactory<CustomElementMicrotaskRunQueue> m_weakFactory;
40 }; 39 };
41 40
42 } 41 }
43 42
44 #endif 43 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698