Chromium Code Reviews| Index: content/renderer/scheduler/web_scheduler_impl.h |
| diff --git a/content/renderer/scheduler/web_scheduler_impl.h b/content/renderer/scheduler/web_scheduler_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c307e9b867d396dea351f23b5ee4a066bb54bda8 |
| --- /dev/null |
| +++ b/content/renderer/scheduler/web_scheduler_impl.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ |
| +#define CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ |
| + |
| +#include "third_party/WebKit/public/platform/WebScheduler.h" |
| + |
| +namespace content { |
| + |
| +class RendererScheduler; |
| + |
| +class WebSchedulerImpl : public blink::WebScheduler { |
| + public: |
| + WebSchedulerImpl(RendererScheduler* renderer_scheduler); |
| + virtual ~WebSchedulerImpl(); |
| + |
| + 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.
|
| + virtual void postIdleTask(const blink::WebTraceLocation& location, |
| + blink::WebScheduler::IdleTask* task); |
| + |
| + private: |
| + RendererScheduler* renderer_scheduler_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_SCHEDULER_WEB_SCHEDULER_IMPL_H_ |