blob: 923fbef6e31c8b1c1cb4fe13af09de68911cac3a [file] [log] [blame]
Daniel Chengcd23b8b2022-09-16 17:16:241// Copyright 2011 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef BASE_FUNCTIONAL_CALLBACK_FORWARD_H_
6#define BASE_FUNCTIONAL_CALLBACK_FORWARD_H_
7
8namespace base {
9
10template <typename Signature>
11class OnceCallback;
12
13template <typename Signature>
14class RepeatingCallback;
15
16// Syntactic sugar to make OnceClosure<void()> and RepeatingClosure<void()>
17// easier to declare since they will be used in a lot of APIs with delayed
18// execution.
19using OnceClosure = OnceCallback<void()>;
20using RepeatingClosure = RepeatingCallback<void()>;
21
22} // namespace base
23
24#endif // BASE_FUNCTIONAL_CALLBACK_FORWARD_H_