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

Unified Diff: content/child/scheduler/scheduler_helper.cc

Issue 1059323003: scheduler: Encapsulate TaskQueueManager inside SchedulerHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GCC build fix. 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
« no previous file with comments | « content/child/scheduler/scheduler_helper.h ('k') | content/child/scheduler/scheduler_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/scheduler/scheduler_helper.cc
diff --git a/content/child/scheduler/scheduler_helper.cc b/content/child/scheduler/scheduler_helper.cc
index 16b4432b1754535491c17898702b59bd4e754711..ea2a15b20dce1cfb1f5b8a925b11b946cc12a456 100644
--- a/content/child/scheduler/scheduler_helper.cc
+++ b/content/child/scheduler/scheduler_helper.cc
@@ -337,8 +337,20 @@ SchedulerHelper::SchedulerTaskQueueSelector() const {
return task_queue_selector_.get();
}
-TaskQueueManager* SchedulerHelper::SchedulerTaskQueueManager() const {
- return task_queue_manager_.get();
+scoped_refptr<base::SingleThreadTaskRunner> SchedulerHelper::TaskRunnerForQueue(
+ size_t queue_index) const {
+ CheckOnValidThread();
+ return task_queue_manager_->TaskRunnerForQueue(queue_index);
+}
+
+void SchedulerHelper::SetQueueName(size_t queue_index, const char* name) {
+ CheckOnValidThread();
+ task_queue_manager_->SetQueueName(queue_index, name);
+}
+
+bool SchedulerHelper::IsQueueEmpty(size_t queue_index) const {
+ CheckOnValidThread();
+ return task_queue_manager_->IsQueueEmpty(queue_index);
}
// static
« no previous file with comments | « content/child/scheduler/scheduler_helper.h ('k') | content/child/scheduler/scheduler_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698