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

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

Issue 2917433002: Followup to https://codereview.chromium.org/2902753003/ (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_single_thread_task_runner_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ENVIRONMENT_CONFIG_H_ 5 #ifndef BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_
6 #define BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ 6 #define BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/base_export.h"
10 #include "base/task_scheduler/task_traits.h" 11 #include "base/task_scheduler/task_traits.h"
11 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
12 13
13 namespace base { 14 namespace base {
14 namespace internal { 15 namespace internal {
15 16
16 enum EnvironmentType { 17 enum EnvironmentType {
17 BACKGROUND = 0, 18 BACKGROUND = 0,
18 BACKGROUND_BLOCKING, 19 BACKGROUND_BLOCKING,
19 FOREGROUND, 20 FOREGROUND,
(...skipping 16 matching lines...) Expand all
36 {"Foreground", base::ThreadPriority::NORMAL}, 37 {"Foreground", base::ThreadPriority::NORMAL},
37 {"ForegroundBlocking", base::ThreadPriority::NORMAL}, 38 {"ForegroundBlocking", base::ThreadPriority::NORMAL},
38 }; 39 };
39 40
40 size_t BASE_EXPORT GetEnvironmentIndexForTraits(const TaskTraits& traits); 41 size_t BASE_EXPORT GetEnvironmentIndexForTraits(const TaskTraits& traits);
41 42
42 } // namespace internal 43 } // namespace internal
43 } // namespace base 44 } // namespace base
44 45
45 #endif // BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ 46 #endif // BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_single_thread_task_runner_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698