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

Side by Side Diff: base/task_scheduler/utils.h

Issue 1704113002: TaskScheduler [6] SchedulerWorkerThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_4_shutdown
Patch Set: self review Created 4 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 unified diff | Download patch
OLDNEW
(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 // Helper for posting |task| to the provided |sequence| and |priority_queue|
21 // conditional on the |task_tracker|.
22 void BASE_EXPORT PostTaskHelper(scoped_ptr<Task> task,
23 scoped_refptr<Sequence> sequence,
24 PriorityQueue* priority_queue,
25 TaskTracker* task_tracker);
26
27 } // namespace internal
28 } // namespace base
29
30 #endif // BASE_TASK_SCHEDULER_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698