| Index: third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| diff --git a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| index 09e3f70ade30e3096f9e31c8458d471eddf3dd0a..c2b828a8bddf288660b917a7d94825b0122c0491 100644
|
| --- a/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| +++ b/third_party/WebKit/Source/platform/scheduler/base/time_domain.h
|
| @@ -111,12 +111,18 @@ class BLINK_PLATFORM_EXPORT TimeDomain {
|
| virtual void OnRegisterWithTaskQueueManager(
|
| TaskQueueManager* task_queue_manager) = 0;
|
|
|
| - // The implementaion will secedule task processing to run with |delay| with
|
| - // respect to the TimeDomain's time source. Always called on the main thread.
|
| + // The implementation will schedule task processing to run at time |run_time|
|
| + // within the TimeDomain's time line. Only called from the main thread.
|
| // NOTE this is only called by ScheduleDelayedWork if the scheduled runtime
|
| // is sooner than any previously sheduled work or if there is no other
|
| // scheduled work.
|
| - virtual void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) = 0;
|
| + virtual void RequestWakeupAt(base::TimeTicks now,
|
| + base::TimeTicks run_time) = 0;
|
| +
|
| + // The implementation will cancel a wake up previously requested by
|
| + // RequestWakeupAt. It's expected this will be a NOP for most virtual time
|
| + // domains.
|
| + virtual void CancelWakeupAt(base::TimeTicks run_time) = 0;
|
|
|
| // For implementation specific tracing.
|
| virtual void AsValueIntoInternal(
|
|
|