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

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

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 | « no previous file | content/child/scheduler/scheduler_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/scheduler/scheduler_helper.h
diff --git a/content/child/scheduler/scheduler_helper.h b/content/child/scheduler/scheduler_helper.h
index 9834380c3279d3234420b7541e6581e16e3f04b8..acb60532261cfcd02067f946c1f1b0fcc2fe6631 100644
--- a/content/child/scheduler/scheduler_helper.h
+++ b/content/child/scheduler/scheduler_helper.h
@@ -158,7 +158,10 @@ class CONTENT_EXPORT SchedulerHelper {
base::TimeTicks Now() const;
IdlePeriodState SchedulerIdlePeriodState() const;
PrioritizingTaskQueueSelector* SchedulerTaskQueueSelector() const;
- TaskQueueManager* SchedulerTaskQueueManager() const;
+ scoped_refptr<base::SingleThreadTaskRunner> TaskRunnerForQueue(
+ size_t queue_index) const;
+ void SetQueueName(size_t queue_index, const char* name);
+ bool IsQueueEmpty(size_t queue_index) const;
// Test helpers.
void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source);
« no previous file with comments | « no previous file | content/child/scheduler/scheduler_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698