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

Side by Side Diff: base/message_loop/high_priority_task_runner.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 unified diff | Download patch
« no previous file with comments | « base/base.gypi ('k') | base/message_loop/high_priority_task_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 BASE_MESSAGE_LOOP_HIGH_PRIORITY_TASK_RUNNER_H_
6 #define BASE_MESSAGE_LOOP_HIGH_PRIORITY_TASK_RUNNER_H_
7
8 #include "base/base_export.h"
9 #include "base/callback_forward.h"
10 #include "base/memory/ref_counted.h"
11
12 namespace tracked_objects {
13 class Location;
14 } // namespace tracked_objects
15
16 namespace base {
17
18 namespace internal {
19 class IncomingTaskQueue;
20 }
21
22 class MessageLoop;
23 class TaskQueue;
24
25 class BASE_EXPORT HighPriorityTaskRunner
26 : public RefCountedThreadSafe<HighPriorityTaskRunner> {
27 public:
28 explicit HighPriorityTaskRunner(MessageLoop* message_loop);
29
30 void PostTask(const tracked_objects::Location& from_here,
31 const Closure& task);
32
33 void ReloadWorkQueue(TaskQueue* target_work_queue);
34
35 private:
36 friend class RefCountedThreadSafe<HighPriorityTaskRunner>;
37
38 virtual ~HighPriorityTaskRunner();
39
40 scoped_refptr<internal::IncomingTaskQueue> incoming_queue_;
41
42 DISALLOW_COPY_AND_ASSIGN(HighPriorityTaskRunner);
43 };
44
45 } // namespace base
46
47 #endif // BASE_MESSAGE_LOOP_HIGH_PRIORITY_TASK_RUNNER_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/message_loop/high_priority_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698