OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ | |
6 #define CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ | |
7 | |
8 #include "third_party/WebKit/public/platform/WebScheduler.h" | |
9 | |
10 namespace content { | |
11 | |
12 class RendererScheduler; | |
13 | |
14 class WebSchedulerImpl : public blink::WebScheduler { | |
15 public: | |
16 WebSchedulerImpl(RendererScheduler* renderer_scheduler); | |
17 virtual ~WebSchedulerImpl(); | |
18 | |
19 virtual bool shouldYieldForHighPriorityWork(); | |
Sami
2014/10/27 12:02:38
We need to add |shutdown| here too.
rmcilroy
2014/10/27 16:25:01
Done.
| |
20 virtual void postIdleTask(const blink::WebTraceLocation& location, | |
21 blink::WebScheduler::IdleTask* task); | |
22 | |
23 private: | |
24 RendererScheduler* renderer_scheduler_; | |
25 }; | |
26 | |
27 } // namespace content | |
28 | |
29 #endif // CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ | |
OLD | NEW |