OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_TASK_SCHEDULER_UTILS_H_ | |
6 #define BASE_TASK_SCHEDULER_UTILS_H_ | |
7 | |
8 #include "base/base_export.h" | |
9 #include "base/memory/ref_counted.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/task_scheduler/sequence.h" | |
12 #include "base/task_scheduler/task.h" | |
13 | |
14 namespace base { | |
15 namespace internal { | |
16 | |
17 class PriorityQueue; | |
18 class TaskTracker; | |
19 | |
20 // If |task_tracker| allows |task| to be posted, inserts it into |sequence|. | |
robliao
2016/03/24 23:03:26
Nit: This is restating the implementation. Perhaps
robliao
2016/03/24 23:03:26
Nit: PostTaskHelper inserts it into |sequence|.
fdoray
2016/03/29 18:33:34
Done.
fdoray
2016/03/29 18:33:34
Done.
| |
21 // Then, inserts |sequence| into |priority_queue| if it was empty before |task| | |
22 // was inserted into it. | |
23 void BASE_EXPORT PostTaskHelper(scoped_ptr<Task> task, | |
24 scoped_refptr<Sequence> sequence, | |
25 PriorityQueue* priority_queue, | |
26 TaskTracker* task_tracker); | |
27 | |
28 } // namespace internal | |
29 } // namespace base | |
30 | |
31 #endif // BASE_TASK_SCHEDULER_UTILS_H_ | |
OLD | NEW |