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

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

Issue 2788223002: Generate TaskScheduler::InitParams from components/task_scheduler_util/. (Closed)
Patch Set: fix-build-error Created 3 years, 8 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 | components/task_scheduler_util/browser/initialization.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | components/task_scheduler_util/browser/initialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698