| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CALLBACK_H_ | 5 #ifndef BASE_CALLBACK_H_ |
| 6 #define BASE_CALLBACK_H_ | 6 #define BASE_CALLBACK_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/callback_internal.h" | 9 #include "base/callback_internal.h" |
| 10 #include "base/template_util.h" | |
| 11 | 10 |
| 12 // NOTE: Header files that do not require the full definition of Callback or | 11 // NOTE: Header files that do not require the full definition of Callback or |
| 13 // Closure should #include "base/callback_forward.h" instead of this file. | 12 // Closure should #include "base/callback_forward.h" instead of this file. |
| 14 | 13 |
| 15 // ----------------------------------------------------------------------------- | 14 // ----------------------------------------------------------------------------- |
| 16 // Introduction | 15 // Introduction |
| 17 // ----------------------------------------------------------------------------- | 16 // ----------------------------------------------------------------------------- |
| 18 // | 17 // |
| 19 // The templated Callback class is a generalized function object. Together | 18 // The templated Callback class is a generalized function object. Together |
| 20 // with the Bind() function in bind.h, they provide a type-safe method for | 19 // with the Bind() function in bind.h, they provide a type-safe method for |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 395 |
| 397 private: | 396 private: |
| 398 using PolymorphicInvoke = | 397 using PolymorphicInvoke = |
| 399 R(*)(internal::BindStateBase*, | 398 R(*)(internal::BindStateBase*, |
| 400 typename internal::CallbackParamTraits<Args>::ForwardType...); | 399 typename internal::CallbackParamTraits<Args>::ForwardType...); |
| 401 }; | 400 }; |
| 402 | 401 |
| 403 } // namespace base | 402 } // namespace base |
| 404 | 403 |
| 405 #endif // BASE_CALLBACK_H_ | 404 #endif // BASE_CALLBACK_H_ |
| OLD | NEW |