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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698