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

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

Issue 1705943002: TaskScheduler [5/9] Task Tracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s_3_pq
Patch Set: CR gab #19 Created 4 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 5 #ifndef BASE_TASK_SCHEDULER_TASK_TRAITS_H_
6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 6 #define BASE_TASK_SCHEDULER_TASK_TRAITS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iosfwd> 10 #include <iosfwd>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // equivalent to the highest priority pending task in the sequence. 129 // equivalent to the highest priority pending task in the sequence.
130 SEQUENCED, 130 SEQUENCED,
131 131
132 // Executes one task at a time on a single thread in posting order. 132 // Executes one task at a time on a single thread in posting order.
133 SINGLE_THREADED, 133 SINGLE_THREADED,
134 }; 134 };
135 135
136 // Pretty Printer for Google Test. 136 // Pretty Printer for Google Test.
137 void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os); 137 void BASE_EXPORT PrintTo(const TaskPriority& task_priority, std::ostream* os);
138 138
139 // Stream operator so TaskPriority can be used in assertion statements.
gab 2016/03/17 01:42:13 s/TaskPriority/TaskShutdownBehavior/ (I still don
fdoray 2016/03/17 20:12:16 TaskPriority is used in Google Test (EXPECT_EQ) wh
gab 2016/03/18 18:48:17 Got it thanks, the now more consistent approach is
140 BASE_EXPORT std::ostream& operator<<(
141 std::ostream& os,
142 const TaskShutdownBehavior& shutdown_behavior);
143
139 } // namespace base 144 } // namespace base
140 145
141 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_ 146 #endif // BASE_TASK_SCHEDULER_TASK_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698