OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RUNNER_H_ | 5 #ifndef BASE_TASK_RUNNER_H_ |
6 #define BASE_TASK_RUNNER_H_ | 6 #define BASE_TASK_RUNNER_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 | 13 |
14 namespace tracked_objects { | 14 namespace tracked_objects { |
15 class Location; | 15 class Location; |
16 } // namespace tracked_objects | 16 } // namespace tracked_objects |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 | 19 |
20 struct TaskRunnerTraits; | 20 struct TaskRunnerTraits; |
21 | 21 |
22 // A TaskRunner is an object that runs posted tasks (in the form of | 22 // A TaskRunner is an object that runs posted tasks (in the form of |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 virtual void OnDestruct() const; | 144 virtual void OnDestruct() const; |
145 }; | 145 }; |
146 | 146 |
147 struct BASE_EXPORT TaskRunnerTraits { | 147 struct BASE_EXPORT TaskRunnerTraits { |
148 static void Destruct(const TaskRunner* task_runner); | 148 static void Destruct(const TaskRunner* task_runner); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace base | 151 } // namespace base |
152 | 152 |
153 #endif // BASE_TASK_RUNNER_H_ | 153 #endif // BASE_TASK_RUNNER_H_ |
OLD | NEW |