| 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/IdleDeadline.h" | 8 #include "core/dom/IdleDeadline.h" |
| 9 #include "core/dom/SuspendableObject.h" | 9 #include "core/dom/SuspendableObject.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/Vector.h" | 12 #include "platform/wtf/Vector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class IdleRequestCallback; | 17 class IdleRequestCallback; |
| 18 class IdleRequestOptions; | 18 class IdleRequestOptions; |
| 19 | 19 |
| 20 class ScriptedIdleTaskController | 20 class ScriptedIdleTaskController |
| 21 : public GarbageCollectedFinalized<ScriptedIdleTaskController>, | 21 : public GarbageCollectedFinalized<ScriptedIdleTaskController>, |
| 22 public SuspendableObject { | 22 public SuspendableObject { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 WebScheduler* scheduler_; // Not owned. | 62 WebScheduler* scheduler_; // Not owned. |
| 63 HeapHashMap<CallbackId, Member<IdleRequestCallback>> callbacks_; | 63 HeapHashMap<CallbackId, Member<IdleRequestCallback>> callbacks_; |
| 64 Vector<CallbackId> pending_timeouts_; | 64 Vector<CallbackId> pending_timeouts_; |
| 65 CallbackId next_callback_id_; | 65 CallbackId next_callback_id_; |
| 66 bool suspended_; | 66 bool suspended_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // ScriptedIdleTaskController_h | 71 #endif // ScriptedIdleTaskController_h |
| OLD | NEW |