OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ScriptedIdleTaskController_h | 5 #ifndef ScriptedIdleTaskController_h |
6 #define ScriptedIdleTaskController_h | 6 #define ScriptedIdleTaskController_h |
7 | 7 |
8 #include "core/dom/ActiveDOMObject.h" | 8 #include "core/dom/ActiveDOMObject.h" |
9 #include "core/dom/IdleDeadline.h" | 9 #include "core/dom/IdleDeadline.h" |
10 #include "platform/Timer.h" | 10 #include "platform/Timer.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 #include "wtf/RefCounted.h" | |
13 #include "wtf/RefPtr.h" | |
14 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
15 | 13 |
16 namespace blink { | 14 namespace blink { |
17 | 15 |
18 class ExecutionContext; | 16 class ExecutionContext; |
19 class IdleRequestCallback; | 17 class IdleRequestCallback; |
20 class IdleRequestOptions; | 18 class IdleRequestOptions; |
21 | 19 |
22 class ScriptedIdleTaskController : public GarbageCollectedFinalized<ScriptedIdle
TaskController>, public ActiveDOMObject { | 20 class ScriptedIdleTaskController : public GarbageCollectedFinalized<ScriptedIdle
TaskController>, public ActiveDOMObject { |
23 USING_GARBAGE_COLLECTED_MIXIN(ScriptedIdleTaskController); | 21 USING_GARBAGE_COLLECTED_MIXIN(ScriptedIdleTaskController); |
(...skipping 26 matching lines...) Expand all Loading... |
50 WebScheduler* m_scheduler; // Not owned. | 48 WebScheduler* m_scheduler; // Not owned. |
51 HeapHashMap<CallbackId, Member<IdleRequestCallback>> m_callbacks; | 49 HeapHashMap<CallbackId, Member<IdleRequestCallback>> m_callbacks; |
52 Vector<CallbackId> m_pendingTimeouts; | 50 Vector<CallbackId> m_pendingTimeouts; |
53 CallbackId m_nextCallbackId; | 51 CallbackId m_nextCallbackId; |
54 bool m_suspended; | 52 bool m_suspended; |
55 }; | 53 }; |
56 | 54 |
57 } // namespace blink | 55 } // namespace blink |
58 | 56 |
59 #endif // ScriptedIdleTaskController_h | 57 #endif // ScriptedIdleTaskController_h |
OLD | NEW |