| OLD | NEW |
| 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_SCHEDULER_WORKER_POOL_PARAMS_H_ | 5 #ifndef BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_PARAMS_H_ |
| 6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_PARAMS_H_ | 6 #define BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_PARAMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/task_scheduler/scheduler_worker_params.h" | 10 #include "base/task_scheduler/scheduler_worker_params.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 SchedulerBackwardCompatibility::DISABLED); | 53 SchedulerBackwardCompatibility::DISABLED); |
| 54 | 54 |
| 55 SchedulerWorkerPoolParams(const SchedulerWorkerPoolParams& other); | 55 SchedulerWorkerPoolParams(const SchedulerWorkerPoolParams& other); |
| 56 SchedulerWorkerPoolParams& operator=(const SchedulerWorkerPoolParams& other); | 56 SchedulerWorkerPoolParams& operator=(const SchedulerWorkerPoolParams& other); |
| 57 | 57 |
| 58 const std::string& name() const { return name_; } | 58 const std::string& name() const { return name_; } |
| 59 ThreadPriority priority_hint() const { return priority_hint_; } | 59 ThreadPriority priority_hint() const { return priority_hint_; } |
| 60 StandbyThreadPolicy standby_thread_policy() const { | 60 StandbyThreadPolicy standby_thread_policy() const { |
| 61 return standby_thread_policy_; | 61 return standby_thread_policy_; |
| 62 } | 62 } |
| 63 size_t max_threads() const { return max_threads_; } | 63 int max_threads() const { return max_threads_; } |
| 64 TimeDelta suggested_reclaim_time() const { return suggested_reclaim_time_; } | 64 TimeDelta suggested_reclaim_time() const { return suggested_reclaim_time_; } |
| 65 SchedulerBackwardCompatibility backward_compatibility() const { | 65 SchedulerBackwardCompatibility backward_compatibility() const { |
| 66 return backward_compatibility_; | 66 return backward_compatibility_; |
| 67 } | 67 } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 // TODO(fdoray): Remove |name_| and |priority_hint_|. https://crbug.com/690706 | 70 // TODO(fdoray): Remove |name_| and |priority_hint_|. https://crbug.com/690706 |
| 71 std::string name_; | 71 std::string name_; |
| 72 ThreadPriority priority_hint_; | 72 ThreadPriority priority_hint_; |
| 73 StandbyThreadPolicy standby_thread_policy_; | 73 StandbyThreadPolicy standby_thread_policy_; |
| 74 size_t max_threads_; | 74 int max_threads_; |
| 75 TimeDelta suggested_reclaim_time_; | 75 TimeDelta suggested_reclaim_time_; |
| 76 SchedulerBackwardCompatibility backward_compatibility_; | 76 SchedulerBackwardCompatibility backward_compatibility_; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace base | 79 } // namespace base |
| 80 | 80 |
| 81 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_PARAMS_H_ | 81 #endif // BASE_TASK_SCHEDULER_SCHEDULER_WORKER_POOL_PARAMS_H_ |
| OLD | NEW |