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

Unified Diff: components/scheduler/child/worker_scheduler.h

Issue 987193002: Redirect the MessageLoop's task runner to the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 5 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: components/scheduler/child/worker_scheduler.h
diff --git a/components/scheduler/child/worker_scheduler.h b/components/scheduler/child/worker_scheduler.h
index 333821094e3f8ac20c37198bf93ee8121710a53b..7a1ec04631096709fc2040f59269a233a9cdf5b0 100644
--- a/components/scheduler/child/worker_scheduler.h
+++ b/components/scheduler/child/worker_scheduler.h
@@ -15,11 +15,13 @@ class MessageLoop;
}
namespace scheduler {
+class SchedulerTaskRunnerDelegate;
class SCHEDULER_EXPORT WorkerScheduler : public ChildScheduler {
public:
~WorkerScheduler() override;
- static scoped_ptr<WorkerScheduler> Create(base::MessageLoop* message_loop);
+ static scoped_ptr<WorkerScheduler> Create(
+ scoped_refptr<SchedulerTaskRunnerDelegate> main_task_runner);
// Must be called before the scheduler can be used. Does any post construction
// initialization needed such as initializing idle period detection.
« no previous file with comments | « components/scheduler/child/webthread_impl_for_worker_scheduler.cc ('k') | components/scheduler/child/worker_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698