diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 22:00:29 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 22:00:29 +0000 |
commit | 2d7156624c43fad05a53e23f166864173221126b (patch) | |
tree | 46fbbb0c48b9cee277091222546f52f6399f21f6 /base/callback_forward.h | |
parent | 3e751c042ee3718c7b43cf8d642d7f6623b25b5b (diff) | |
download | chromium_src-2d7156624c43fad05a53e23f166864173221126b.zip chromium_src-2d7156624c43fad05a53e23f166864173221126b.tar.gz chromium_src-2d7156624c43fad05a53e23f166864173221126b.tar.bz2 |
callback_forward.h forward-declares base::Callback and base::Closure.
This CL includes callback_forward.h and a number of files that depend on it. Other CLs have been sent to other reviewers, according to OWNERS files. This search shows the other CLs: http://goo.gl/vzQoJ
See this chromium-dev thread for the rationale behind the change: http://goo.gl/I3kob
BUG=None
TEST=Compiles
Review URL: http://codereview.chromium.org/8702019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/callback_forward.h')
-rw-r--r-- | base/callback_forward.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/callback_forward.h b/base/callback_forward.h new file mode 100644 index 0000000..0f62864 --- /dev/null +++ b/base/callback_forward.h @@ -0,0 +1,18 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_CALLBACK_FORWARD_H_ +#define BASE_CALLBACK_FORWARD_H_ +#pragma once + +namespace base { + +template <typename Sig> +class Callback; + +typedef Callback<void(void)> Closure; + +} // namespace base + +#endif // BASE_CALLBACK_FORWARD_H |