OLD | NEW |
---|---|
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 COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
7 | 7 |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "components/scheduler/child/child_scheduler.h" | 9 #include "components/scheduler/child/child_scheduler.h" |
10 #include "components/scheduler/child/single_thread_idle_task_runner.h" | 10 #include "components/scheduler/child/single_thread_idle_task_runner.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 virtual void SuspendTimerQueue() = 0; | 136 virtual void SuspendTimerQueue() = 0; |
137 | 137 |
138 // Decrements the timer queue suspension count and re-enables the timer queue | 138 // Decrements the timer queue suspension count and re-enables the timer queue |
139 // if the suspension count is zero and the current schduler policy allows it. | 139 // if the suspension count is zero and the current schduler policy allows it. |
140 virtual void ResumeTimerQueue() = 0; | 140 virtual void ResumeTimerQueue() = 0; |
141 | 141 |
142 // Sets whether to allow suspension of timers after the backgrounded signal is | 142 // Sets whether to allow suspension of timers after the backgrounded signal is |
143 // received via OnRendererBackgrounded. Defaults to disabled. | 143 // received via OnRendererBackgrounded. Defaults to disabled. |
144 virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0; | 144 virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0; |
145 | 145 |
146 virtual double currentTime() const = 0; | |
Sami
2015/10/30 19:53:31
CurrentTime here too
Both of these could use some
alex clarke (OOO till 29th)
2015/11/04 15:12:24
Done.
| |
147 | |
148 virtual double monotonicallyIncreasingTime() const = 0; | |
Sami
2015/10/30 19:53:31
MonotonicallyIncreasingTime
alex clarke (OOO till 29th)
2015/11/04 15:12:24
Done.
| |
149 | |
146 protected: | 150 protected: |
147 RendererScheduler(); | 151 RendererScheduler(); |
148 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); | 152 DISALLOW_COPY_AND_ASSIGN(RendererScheduler); |
149 }; | 153 }; |
150 | 154 |
151 } // namespace scheduler | 155 } // namespace scheduler |
152 | 156 |
153 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ | 157 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_H_ |
OLD | NEW |