Chromium Code Reviews| Index: public/platform/WebScheduler.h |
| diff --git a/public/platform/WebScheduler.h b/public/platform/WebScheduler.h |
| index 443c02ccf0688a2e33c0f49a50998c9468cc470d..1db916e6019d062d72e0257240a5cd4e0dab11c4 100644 |
| --- a/public/platform/WebScheduler.h |
| +++ b/public/platform/WebScheduler.h |
| @@ -5,6 +5,8 @@ |
| #ifndef WebScheduler_h |
| #define WebScheduler_h |
| +#include "public/platform/WebThread.h" |
| + |
| namespace blink { |
| class WebTraceLocation; |
| @@ -37,6 +39,12 @@ public: |
| // starved for an arbitrarily long time if no idle time is available. |
| // Takes ownership of |IdleTask|. Can be called from any thread. |
| virtual void postIdleTask(const WebTraceLocation&, IdleTask*) { } |
| + |
| + // Schedule a loading task to be run on the Blink main thread. Loading |
| + // tasks usually have the default priority, but may be deprioritised |
| + // when the user is interacting with the device. |
| + // Takes ownership of |IdleTask|. Can be called from any thread. |
|
jochen (gone - plz use gerrit)
2015/01/26 15:53:31
nit. WebThread::Task instead of IdleTask
alex clarke (OOO till 29th)
2015/01/26 17:00:45
Done.
|
| + virtual void postLoadingTask(const WebTraceLocation&, WebThread::Task*) { } |
| }; |
| } // namespace blink |