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

Unified Diff: base/task_scheduler/task_traits.h

Issue 2464963002: TaskScheduler: Remove base::ExecutionMode. (Closed)
Patch Set: CR danakj #17 Created 4 years, 1 month 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
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | base/task_scheduler/task_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_traits.h
diff --git a/base/task_scheduler/task_traits.h b/base/task_scheduler/task_traits.h
index 9fee22427bef130103475466166db6d976955c52..93b6d71e9c7c3842ca9e65fcde9c66558d0face8 100644
--- a/base/task_scheduler/task_traits.h
+++ b/base/task_scheduler/task_traits.h
@@ -113,25 +113,11 @@ class BASE_EXPORT TaskTraits {
TaskShutdownBehavior shutdown_behavior_;
};
-// Describes how tasks are executed by a task runner.
-enum class ExecutionMode {
- // Can execute multiple tasks at a time in any order.
- PARALLEL,
-
- // Executes one task at a time in posting order. The sequence’s priority is
- // equivalent to the highest priority pending task in the sequence.
- SEQUENCED,
-
- // Executes one task at a time on a single thread in posting order.
- SINGLE_THREADED,
-};
-
// Returns string literals for the enums defined in this file. These methods
// should only be used for tracing and debugging.
BASE_EXPORT const char* TaskPriorityToString(TaskPriority task_priority);
BASE_EXPORT const char* TaskShutdownBehaviorToString(
TaskShutdownBehavior task_priority);
-BASE_EXPORT const char* ExecutionModeToString(ExecutionMode task_priority);
// Stream operators so that the enums defined in this file can be used in
// DCHECK and EXPECT statements.
@@ -140,8 +126,6 @@ BASE_EXPORT std::ostream& operator<<(std::ostream& os,
BASE_EXPORT std::ostream& operator<<(
std::ostream& os,
const TaskShutdownBehavior& shutdown_behavior);
-BASE_EXPORT std::ostream& operator<<(std::ostream& os,
- const ExecutionMode& execution_mode);
} // namespace base
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | base/task_scheduler/task_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698