| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |