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 WebScheduler_h | 5 #ifndef WebScheduler_h |
6 #define WebScheduler_h | 6 #define WebScheduler_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
9 #include "public/platform/WebThread.h" | 9 #include "public/platform/WebThread.h" |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // task has run. This enables posting of a task which won't stop the Blink | 45 // task has run. This enables posting of a task which won't stop the Blink |
46 // main thread from sleeping, but will start running after it wakes up. | 46 // main thread from sleeping, but will start running after it wakes up. |
47 // Takes ownership of |IdleTask|. Can be called from any thread. | 47 // Takes ownership of |IdleTask|. Can be called from any thread. |
48 virtual void postIdleTaskAfterWakeup(const WebTraceLocation&, IdleTask*) { } | 48 virtual void postIdleTaskAfterWakeup(const WebTraceLocation&, IdleTask*) { } |
49 | 49 |
50 // Schedule a loading task to be run on the Blink main thread. Loading | 50 // Schedule a loading task to be run on the Blink main thread. Loading |
51 // tasks usually have the default priority, but may be deprioritised | 51 // tasks usually have the default priority, but may be deprioritised |
52 // when the user is interacting with the device. | 52 // when the user is interacting with the device. |
53 // Takes ownership of |WebThread::Task|. Can be called from any thread. | 53 // Takes ownership of |WebThread::Task|. Can be called from any thread. |
54 virtual void postLoadingTask(const WebTraceLocation&, WebThread::Task*) { } | 54 virtual void postLoadingTask(const WebTraceLocation&, WebThread::Task*) { } |
| 55 |
| 56 virtual void postTimerTask(const WebTraceLocation&, WebThread::Task*, long l
ong delayMs) { } |
55 }; | 57 }; |
56 | 58 |
57 } // namespace blink | 59 } // namespace blink |
58 | 60 |
59 #endif // WebScheduler_h | 61 #endif // WebScheduler_h |
OLD | NEW |