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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 #ifdef INSIDE_BLINK | 86 #ifdef INSIDE_BLINK |
87 // Helpers for posting bound functions as tasks. | 87 // Helpers for posting bound functions as tasks. |
88 typedef Function<void(double deadlineSeconds)> IdleTask; | 88 typedef Function<void(double deadlineSeconds)> IdleTask; |
89 typedef Function<void()> Task; | 89 typedef Function<void()> Task; |
90 | 90 |
91 void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); | 91 void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); |
92 void postNonNestableIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); | 92 void postNonNestableIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>); |
93 void postIdleTaskAfterWakeup(const WebTraceLocation&, PassOwnPtr<IdleTask>); | 93 void postIdleTaskAfterWakeup(const WebTraceLocation&, PassOwnPtr<IdleTask>); |
94 void postLoadingTask(const WebTraceLocation&, PassOwnPtr<Task>); | 94 void postLoadingTask(const WebTraceLocation&, PassOwnPtr<Task>); |
| 95 void postTimerTask(const WebTraceLocation&, PassOwnPtr<Task>, long long dela
yMs); |
95 #endif | 96 #endif |
96 }; | 97 }; |
97 | 98 |
98 } // namespace blink | 99 } // namespace blink |
99 | 100 |
100 #endif // WebScheduler_h | 101 #endif // WebScheduler_h |
OLD | NEW |