| 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include "platform/scheduler/renderer/web_view_scheduler.h" | 8 #include "platform/scheduler/renderer/web_view_scheduler.h" |
| 9 #include "public/platform/WebString.h" | 9 #include "public/platform/WebString.h" |
| 10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // run earlier than it normally would. | 65 // run earlier than it normally would. |
| 66 virtual void PostNonNestableIdleTask(const WebTraceLocation&, | 66 virtual void PostNonNestableIdleTask(const WebTraceLocation&, |
| 67 WebThread::IdleTask*) = 0; | 67 WebThread::IdleTask*) = 0; |
| 68 | 68 |
| 69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread. | 69 // Returns a WebTaskRunner for loading tasks. Can be called from any thread. |
| 70 virtual WebTaskRunner* LoadingTaskRunner() = 0; | 70 virtual WebTaskRunner* LoadingTaskRunner() = 0; |
| 71 | 71 |
| 72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread. | 72 // Returns a WebTaskRunner for timer tasks. Can be called from any thread. |
| 73 virtual WebTaskRunner* TimerTaskRunner() = 0; | 73 virtual WebTaskRunner* TimerTaskRunner() = 0; |
| 74 | 74 |
| 75 // Returns a WebTaskRunner for compositor tasks. This is intended only to be | |
| 76 // used by specific animation and rendering related tasks (e.g. animated GIFS) | |
| 77 // and should not generally be used. | |
| 78 virtual WebTaskRunner* CompositorTaskRunner() = 0; | |
| 79 | |
| 80 // Creates a new WebViewScheduler for a given WebView. Must be called from | 75 // Creates a new WebViewScheduler for a given WebView. Must be called from |
| 81 // the associated WebThread. | 76 // the associated WebThread. |
| 82 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler( | 77 virtual std::unique_ptr<WebViewScheduler> CreateWebViewScheduler( |
| 83 InterventionReporter*, | 78 InterventionReporter*, |
| 84 WebViewScheduler::WebViewSchedulerSettings*) = 0; | 79 WebViewScheduler::WebViewSchedulerSettings*) = 0; |
| 85 | 80 |
| 86 // Suspends the timer queue and increments the timer queue suspension count. | 81 // Suspends the timer queue and increments the timer queue suspension count. |
| 87 // May only be called from the main thread. | 82 // May only be called from the main thread. |
| 88 virtual void SuspendTimerQueue() = 0; | 83 virtual void SuspendTimerQueue() = 0; |
| 89 | 84 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 106 | 101 |
| 107 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); | 102 void PostIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); |
| 108 void PostNonNestableIdleTask(const WebTraceLocation&, | 103 void PostNonNestableIdleTask(const WebTraceLocation&, |
| 109 std::unique_ptr<IdleTask>); | 104 std::unique_ptr<IdleTask>); |
| 110 #endif | 105 #endif |
| 111 }; | 106 }; |
| 112 | 107 |
| 113 } // namespace blink | 108 } // namespace blink |
| 114 | 109 |
| 115 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H
_ | 110 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_WEB_SCHEDULER_H
_ |
| OLD | NEW |