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