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

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

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 #include "base/task_scheduler/task_traits.h" 5 #include "base/task_scheduler/task_traits.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 namespace base { 9 namespace base {
10 10
(...skipping 30 matching lines...) Expand all
41 break; 41 break;
42 case TaskPriority::USER_VISIBLE: 42 case TaskPriority::USER_VISIBLE:
43 *os << "USER_VISIBLE"; 43 *os << "USER_VISIBLE";
44 break; 44 break;
45 case TaskPriority::USER_BLOCKING: 45 case TaskPriority::USER_BLOCKING:
46 *os << "USER_BLOCKING"; 46 *os << "USER_BLOCKING";
47 break; 47 break;
48 } 48 }
49 } 49 }
50 50
51 std::ostream& operator<<(std::ostream& os,
52 const TaskShutdownBehavior& shutdown_behavior) {
53 switch (shutdown_behavior) {
54 case TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN:
55 os << "CONTINUE_ON_SHUTDOWN";
56 break;
57 case TaskShutdownBehavior::SKIP_ON_SHUTDOWN:
58 os << "SKIP_ON_SHUTDOWN";
59 break;
60 case TaskShutdownBehavior::BLOCK_SHUTDOWN:
61 os << "BLOCK_SHUTDOWN";
62 break;
63 }
64 return os;
65 }
66
51 } // namespace base 67 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698