Chromium Code Reviews| Index: components/scheduler/renderer/throttled_time_domain.h |
| diff --git a/components/scheduler/renderer/throttled_time_domain.h b/components/scheduler/renderer/throttled_time_domain.h |
| index f274e8c081ec5e9deda710b5a06e77bd8b23d45c..083c24b4c363de9a4e856c7c23c8da66ac608353 100644 |
| --- a/components/scheduler/renderer/throttled_time_domain.h |
| +++ b/components/scheduler/renderer/throttled_time_domain.h |
| @@ -6,26 +6,25 @@ |
| #define COMPONENTS_SCHEDULER_RENDERER_THROTTLED_TIME_DOMAIN_H_ |
| #include "base/macros.h" |
| -#include "components/scheduler/base/virtual_time_domain.h" |
| +#include "components/scheduler/base/real_time_domain.h" |
| namespace scheduler { |
| -// A time domain that's mostly a VirtualTimeDomain except that real time is used |
| -// when computing the delayed runtime. |
| -class SCHEDULER_EXPORT ThrottledTimeDomain : public VirtualTimeDomain { |
| +// A time domein for throttled tasks. behaves like an RealTimeDomain except it |
|
rmcilroy
2016/07/18 15:22:57
/s/domein/domain
alex clarke (OOO till 29th)
2016/07/18 15:35:53
Done.
|
| +// relies the owner (ThrottlingHelper) to schedule wakeups. |
|
rmcilroy
2016/07/18 15:22:57
s/relies the/relies on the
alex clarke (OOO till 29th)
2016/07/18 15:35:52
Done.
|
| +class SCHEDULER_EXPORT ThrottledTimeDomain : public RealTimeDomain { |
| public: |
| ThrottledTimeDomain(TimeDomain::Observer* observer, |
| - base::TickClock* tick_clock); |
| + const char* tracing_category); |
| ~ThrottledTimeDomain() override; |
| - // TimeDomain implementation: |
| - base::TimeTicks ComputeDelayedRunTime(base::TimeTicks time_domain_now, |
| - base::TimeDelta delay) const override; |
| const char* GetName() const override; |
| - private: |
| - base::TickClock* const tick_clock_; // NOT OWNED |
| + void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) override; |
| + |
| + bool MaybeAdvanceTime() override; |
| + private: |
| DISALLOW_COPY_AND_ASSIGN(ThrottledTimeDomain); |
| }; |