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

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

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

Powered by Google App Engine
This is Rietveld 408576698