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

Unified Diff: base/message_loop/message_loop.h

Issue 281073002: NOT FOR REVIEW: Adding prioritized incoming task queue to renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prioritize input events Created 6 years, 7 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 | « base/message_loop/high_priority_task_runner.cc ('k') | base/message_loop/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop.h
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h
index 4bb7d550bccf53a53c062daea1436208bd6e6b38..41f471abaf6c11efcd2189ee8fa25e9eefbeb172 100644
--- a/base/message_loop/message_loop.h
+++ b/base/message_loop/message_loop.h
@@ -374,6 +374,12 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate {
protected:
scoped_ptr<MessagePump> pump_;
+ // Loads tasks from the incoming queue to |work_queue_| if the latter is
+ // empty.
+ virtual void ReloadWorkQueue();
+
+ virtual TaskQueue& SelectNextWorkQueue();
+
private:
friend class internal::IncomingTaskQueue;
friend class RunLoop;
@@ -407,10 +413,6 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate {
// colliding with MessageLoop pointers on other processes.
uint64 GetTaskTraceID(const PendingTask& task);
- // Loads tasks from the incoming queue to |work_queue_| if the latter is
- // empty.
- void ReloadWorkQueue();
-
// Wakes up the message pump. Can be called on any thread. The caller is
// responsible for synchronizing ScheduleWork() calls.
void ScheduleWork(bool was_empty);
« no previous file with comments | « base/message_loop/high_priority_task_runner.cc ('k') | base/message_loop/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698