Index: base/task_scheduler/utils.h |
diff --git a/base/task_scheduler/utils.h b/base/task_scheduler/utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55081dd2fee02e69cafa453abac5615ed849de4e |
--- /dev/null |
+++ b/base/task_scheduler/utils.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef BASE_TASK_SCHEDULER_UTILS_H_ |
+#define BASE_TASK_SCHEDULER_UTILS_H_ |
+ |
+#include "base/base_export.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/task_scheduler/sequence.h" |
+#include "base/task_scheduler/task.h" |
+ |
+namespace base { |
+namespace internal { |
+ |
+class PriorityQueue; |
+class TaskTracker; |
+ |
+// Helper for posting |task| to the provided |sequence| and |priority_queue| |
+// conditional on the |task_tracker|. |
+void BASE_EXPORT PostTaskHelper(scoped_ptr<Task> task, |
+ scoped_refptr<Sequence> sequence, |
+ PriorityQueue* priority_queue, |
+ TaskTracker* task_tracker); |
+ |
+} // namespace internal |
+} // namespace base |
+ |
+#endif // BASE_TASK_SCHEDULER_UTILS_H_ |