OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |
| 6 #define CONTENT_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |
| 7 |
| 8 #include "content/child/scheduler/base_web_scheduler.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class CONTENT_EXPORT WorkerWebSchedulerImpl : public BaseWebScheduler { |
| 13 public: |
| 14 explicit WorkerWebSchedulerImpl(WorkerScheduler* worker_scheduler); |
| 15 ~WorkerWebSchedulerImpl() override; |
| 16 |
| 17 // blink::WebScheduler implementation: |
| 18 virtual bool shouldYieldForHighPriorityWork(); |
| 19 virtual bool canExceedIdleDeadlineIfRequired(); |
| 20 |
| 21 private: |
| 22 WorkerScheduler* worker_scheduler_; // NOT OWNED |
| 23 }; |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |
OLD | NEW |