| Index: third_party/WebKit/public/platform/WebScheduler.h
|
| diff --git a/third_party/WebKit/public/platform/WebScheduler.h b/third_party/WebKit/public/platform/WebScheduler.h
|
| index aeeb8f42089304e274e846087e5c37fad9bfdb4f..0af83a2dbe8383b30f2491d92293d09204ae26cf 100644
|
| --- a/third_party/WebKit/public/platform/WebScheduler.h
|
| +++ b/third_party/WebKit/public/platform/WebScheduler.h
|
| @@ -60,6 +60,15 @@
|
| // Takes ownership of |IdleTask|. Can be called from any thread.
|
| virtual void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*) = 0;
|
|
|
| + // Schedule a timer task to be run on the the associated WebThread. Timer Tasks
|
| + // tasks usually have the default priority, but may be delayed
|
| + // when the user is interacting with the device.
|
| + // |monotonicTime| is in the timebase of WTF::monotonicallyIncreasingTime().
|
| + // Takes ownership of |WebTaskRunner::Task|. Can be called from any thread.
|
| + // TODO(alexclarke): Move timer throttling for background pages to the
|
| + // chromium side and remove this.
|
| + virtual void postTimerTaskAt(const WebTraceLocation&, WebTaskRunner::Task*, double monotonicTime) = 0;
|
| +
|
| // Returns a WebTaskRunner for loading tasks. Can be called from any thread.
|
| virtual WebTaskRunner* loadingTaskRunner() = 0;
|
|
|
|
|