| 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/WebTaskRunner.h" | 9 #include "public/platform/WebTaskRunner.h" |
| 10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
| 11 #include "public/platform/WebTraceLocation.h" | |
| 12 #include "public/platform/WebViewScheduler.h" | 11 #include "public/platform/WebViewScheduler.h" |
| 13 | 12 |
| 14 #include <memory> | 13 #include <memory> |
| 15 | 14 |
| 16 namespace blink { | 15 namespace blink { |
| 17 | 16 |
| 17 class WebTraceLocation; |
| 18 class WebView; | 18 class WebView; |
| 19 | 19 |
| 20 // This class is used to submit tasks and pass other information from Blink to | 20 // This class is used to submit tasks and pass other information from Blink to |
| 21 // the platform's scheduler. | 21 // the platform's scheduler. |
| 22 class BLINK_PLATFORM_EXPORT WebScheduler { | 22 class BLINK_PLATFORM_EXPORT WebScheduler { |
| 23 public: | 23 public: |
| 24 virtual ~WebScheduler() { } | 24 virtual ~WebScheduler() { } |
| 25 | 25 |
| 26 // Called to prevent any more pending tasks from running. Must be called on | 26 // Called to prevent any more pending tasks from running. Must be called on |
| 27 // the associated WebThread. | 27 // the associated WebThread. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void postIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); | 101 void postIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); |
| 102 void postNonNestableIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTa
sk>); | 102 void postNonNestableIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTa
sk>); |
| 103 void postIdleTaskAfterWakeup(const WebTraceLocation&, std::unique_ptr<IdleTa
sk>); | 103 void postIdleTaskAfterWakeup(const WebTraceLocation&, std::unique_ptr<IdleTa
sk>); |
| 104 #endif | 104 #endif |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| 108 | 108 |
| 109 #endif // WebScheduler_h | 109 #endif // WebScheduler_h |
| OLD | NEW |