| 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_TASK_TRACKER_H_ | 5 #ifndef BASE_TASK_SCHEDULER_TASK_TRACKER_H_ |
| 6 #define BASE_TASK_SCHEDULER_TASK_TRACKER_H_ | 6 #define BASE_TASK_SCHEDULER_TASK_TRACKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" |
| 13 #include "base/metrics/histogram_base.h" | 14 #include "base/metrics/histogram_base.h" |
| 14 #include "base/synchronization/condition_variable.h" | 15 #include "base/synchronization/condition_variable.h" |
| 15 #include "base/task_scheduler/scheduler_lock.h" | 16 #include "base/task_scheduler/scheduler_lock.h" |
| 16 #include "base/task_scheduler/task.h" | 17 #include "base/task_scheduler/task.h" |
| 17 #include "base/task_scheduler/task_traits.h" | 18 #include "base/task_scheduler/task_traits.h" |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 namespace internal { | 21 namespace internal { |
| 21 | 22 |
| 22 // All tasks go through the scheduler's TaskTracker when they are posted and | 23 // All tasks go through the scheduler's TaskTracker when they are posted and |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // True once Shutdown() has returned. No new task can be scheduled after this. | 86 // True once Shutdown() has returned. No new task can be scheduled after this. |
| 86 bool shutdown_completed_ = false; | 87 bool shutdown_completed_ = false; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(TaskTracker); | 89 DISALLOW_COPY_AND_ASSIGN(TaskTracker); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace internal | 92 } // namespace internal |
| 92 } // namespace base | 93 } // namespace base |
| 93 | 94 |
| 94 #endif // BASE_TASK_SCHEDULER_TASK_TRACKER_H_ | 95 #endif // BASE_TASK_SCHEDULER_TASK_TRACKER_H_ |
| OLD | NEW |