Index: content/child/scheduler/worker_web_scheduler_impl.h |
diff --git a/content/child/scheduler/worker_web_scheduler_impl.h b/content/child/scheduler/worker_web_scheduler_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d3045557564aa3d817db1c26665b325bd4bab4d5 |
--- /dev/null |
+++ b/content/child/scheduler/worker_web_scheduler_impl.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 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_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |
+#define CONTENT_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |
+ |
+#include "content/child/scheduler/base_web_scheduler.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT WorkerWebSchedulerImpl : public BaseWebScheduler { |
+ public: |
+ explicit WorkerWebSchedulerImpl(WorkerScheduler* worker_scheduler); |
+ ~WorkerWebSchedulerImpl() override; |
+ |
+ // blink::WebScheduler implementation: |
+ virtual bool shouldYieldForHighPriorityWork(); |
+ virtual bool canExceedIdleDeadlineIfRequired(); |
+ |
+ private: |
+ WorkerScheduler* worker_scheduler_; // NOT OWNED |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_CHILD_SCHEDULER_WORKER_WEB_SCHEDULER_IMPL_H_ |