| 6 | #define BASE_CALLBACK_FORWARD_H_ |
| 7 |
| 8 | namespace base { |
| 9 |
| 10 | template <typename Signature> |
| 11 | class OnceCallback; |
| 12 |
| 13 | template <typename Signature> |
| 14 | class RepeatingCallback; |
| 15 |
| 16 | template <typename Signature> |
| 17 | using Callback = RepeatingCallback<Signature>; |
| 18 |
| 19 | // Syntactic sugar to make OnceClosure<void()> and RepeatingClosure<void()> |
| 20 | // easier to declare since they will be used in a lot of APIs with delayed |
| 21 | // execution. |
| 22 | using OnceClosure = OnceCallback<void()>; |
| 23 | using RepeatingClosure = RepeatingCallback<void()>; |
| 24 | using Closure = Callback<void()>; |
| 25 |
| 26 | } // namespace base |
| 27 |
| 28 | #endif // BASE_CALLBACK_FORWARD_H_ |
| 29 |