Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: content/child/scheduler/worker_web_scheduler_impl.h

Issue 1088053003: Patch 1/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a BaseWebScheduler Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698