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

Side by Side Diff: components/scheduler/child/worker_scheduler_impl.h

Issue 1675633002: WebTaskRunnerImpl to take a TaskQueue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/scheduler/child/idle_helper.h" 9 #include "components/scheduler/child/idle_helper.h"
10 #include "components/scheduler/child/scheduler_helper.h" 10 #include "components/scheduler/child/scheduler_helper.h"
(...skipping 11 matching lines...) Expand all
22 class SchedulerTqmDelegate; 22 class SchedulerTqmDelegate;
23 23
24 class SCHEDULER_EXPORT WorkerSchedulerImpl : public WorkerScheduler, 24 class SCHEDULER_EXPORT WorkerSchedulerImpl : public WorkerScheduler,
25 public IdleHelper::Delegate { 25 public IdleHelper::Delegate {
26 public: 26 public:
27 explicit WorkerSchedulerImpl( 27 explicit WorkerSchedulerImpl(
28 scoped_refptr<SchedulerTqmDelegate> main_task_runner); 28 scoped_refptr<SchedulerTqmDelegate> main_task_runner);
29 ~WorkerSchedulerImpl() override; 29 ~WorkerSchedulerImpl() override;
30 30
31 // WorkerScheduler implementation: 31 // WorkerScheduler implementation:
32 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; 32 scoped_refptr<TaskQueue> DefaultTaskRunner() override;
33 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; 33 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override;
34 bool CanExceedIdleDeadlineIfRequired() const override; 34 bool CanExceedIdleDeadlineIfRequired() const override;
35 bool ShouldYieldForHighPriorityWork() override; 35 bool ShouldYieldForHighPriorityWork() override;
36 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 36 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
37 void RemoveTaskObserver( 37 void RemoveTaskObserver(
38 base::MessageLoop::TaskObserver* task_observer) override; 38 base::MessageLoop::TaskObserver* task_observer) override;
39 void Init() override; 39 void Init() override;
40 void Shutdown() override; 40 void Shutdown() override;
41 41
42 SchedulerHelper* GetSchedulerHelperForTesting(); 42 SchedulerHelper* GetSchedulerHelperForTesting();
(...skipping 14 matching lines...) Expand all
57 SchedulerHelper helper_; 57 SchedulerHelper helper_;
58 IdleHelper idle_helper_; 58 IdleHelper idle_helper_;
59 bool initialized_; 59 bool initialized_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(WorkerSchedulerImpl); 61 DISALLOW_COPY_AND_ASSIGN(WorkerSchedulerImpl);
62 }; 62 };
63 63
64 } // namespace scheduler 64 } // namespace scheduler
65 65
66 #endif // COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_ 66 #endif // COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/child/webthread_impl_for_worker_scheduler.h ('k') | components/scheduler/child/worker_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698