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

Side by Side Diff: components/scheduler/child/scheduler_task_runner_delegate.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: Review comments + refactor all the things 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 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 COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_
6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_
7
8 #include "base/message_loop/message_loop.h"
9 #include "components/scheduler/child/nestable_single_thread_task_runner.h"
10 #include "components/scheduler/scheduler_export.h"
11
12 namespace scheduler {
13
14 class SCHEDULER_EXPORT SchedulerTaskRunnerDelegate
15 : public NestableSingleThreadTaskRunner {
16 public:
17 SchedulerTaskRunnerDelegate() {}
18
19 // If the underlying task runner supports the concept of a default task
20 // runner, the delegate should implement this function to redirect that task
21 // runner to the scheduler.
22 virtual void SetDefaultTaskRunner(
23 scoped_refptr<base::SingleThreadTaskRunner> task_runner) = 0;
24
25 protected:
26 ~SchedulerTaskRunnerDelegate() override {}
27
28 DISALLOW_COPY_AND_ASSIGN(SchedulerTaskRunnerDelegate);
29 };
30
31 } // namespace scheduler
32
33 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TASK_RUNNER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698