| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_THREADING_WORKER_POOL_H_ | 5 #ifndef BASE_THREADING_WORKER_POOL_H_ |
| 6 #define BASE_THREADING_WORKER_POOL_H_ | 6 #define BASE_THREADING_WORKER_POOL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/base_export.h" | 9 #include "base/base_export.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback_forward.h" |
| 11 | 11 |
| 12 class Task; | 12 class Task; |
| 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 // This is a facility that runs tasks that don't require a specific thread or | 20 // This is a facility that runs tasks that don't require a specific thread or |
| (...skipping 23 matching lines...) Expand all Loading... |
| 44 // like you can for PostTask above. | 44 // like you can for PostTask above. |
| 45 static bool PostTaskAndReply(const tracked_objects::Location& from_here, | 45 static bool PostTaskAndReply(const tracked_objects::Location& from_here, |
| 46 const Closure& task, | 46 const Closure& task, |
| 47 const Closure& reply, | 47 const Closure& reply, |
| 48 bool task_is_slow); | 48 bool task_is_slow); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace base | 51 } // namespace base |
| 52 | 52 |
| 53 #endif // BASE_THREADING_WORKER_POOL_H_ | 53 #endif // BASE_THREADING_WORKER_POOL_H_ |
| OLD | NEW |