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

Unified Diff: base/task_scheduler/utils.h

Issue 1906083002: TaskScheduler: Remove base/task_scheduler/utils.h/.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sched_2_stack
Patch Set: typos 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 side-by-side diff with in-line comments
Download patch
Index: base/task_scheduler/utils.h
diff --git a/base/task_scheduler/utils.h b/base/task_scheduler/utils.h
deleted file mode 100644
index 929d65c363494287e2b958c8686b94b79c70412b..0000000000000000000000000000000000000000
--- a/base/task_scheduler/utils.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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 <memory>
-
-#include "base/base_export.h"
-#include "base/memory/ref_counted.h"
-#include "base/task_scheduler/sequence.h"
-#include "base/task_scheduler/task.h"
-
-namespace base {
-namespace internal {
-
-class DelayedTaskManager;
-class PriorityQueue;
-class SchedulerTaskExecutor;
-class TaskTracker;
-
-// Attempts to post |task| to the provided |sequence| and |executor| conditional
-// on |task_tracker|. If |task| has a delayed run time, it is handled by
-// |delayed_task_manager|. Returns true if the task is posted.
-bool BASE_EXPORT PostTaskToExecutor(std::unique_ptr<Task> task,
- scoped_refptr<Sequence> sequence,
- SchedulerTaskExecutor* executor,
- TaskTracker* task_tracker,
- DelayedTaskManager* delayed_task_manager);
-
-// Posts |task| to the provided |sequence| and |priority_queue|. This must only
-// be called after |task|'s delayed run time. Returns true if |sequence| was
-// empty before |task| was inserted into it.
-bool BASE_EXPORT
-AddTaskToSequenceAndPriorityQueue(std::unique_ptr<Task> task,
- scoped_refptr<Sequence> sequence,
- PriorityQueue* priority_queue);
-
-} // namespace internal
-} // namespace base
-
-#endif // BASE_TASK_SCHEDULER_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698