Lines Matching defs:Callback

18 // New, super-duper, unified Callback system.  This will eventually replace
24 // The templated Callback class is a generalized function object. Together
36 // The Callback objects themselves should be passed by const-reference, and
48 // base::Callback<int(void)> func_cb = base::Bind(&Return5);
62 // base::Callback<int(void)> ref_cb = base::Bind(&Ref::Foo, ref.get());
81 // base::Callback<int(void)> base::no_ref_cb =
92 // base::Callback<int(void)> bound_copy_cb = base::Bind(&Identity, value);
93 // base::Callback<int(void)> bound_ref_cb =
104 // The design Callback and Bind is heavily influenced by C++'s
105 // tr1::function/tr1::bind, and by the "Google Callback" system used inside
112 // 1) The Callback classes.
116 // The Callback classes represent a generic function pointer. Internally,
118 // and all its bound parameters. Each Callback specialization has a templated
124 // Callback's constructor is takes the InvokerStorageHolder<> that has the
180 // Furthermore, in Chromium, it is desirable for the Callback to take a
216 // First, we forward declare the Callback class template. This informs the
218 // signature that the Callback is representing.
224 class Callback;
227 class Callback<R(void)> : public internal::CallbackBase {
232 Callback() : CallbackBase(NULL, NULL) { }
240 // return the exact Callback<> type. See base/bind.h for details.
242 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
257 class Callback<R(A1)> : public internal::CallbackBase {
263 Callback() : CallbackBase(NULL, NULL) { }
271 // return the exact Callback<> type. See base/bind.h for details.
273 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
288 class Callback<R(A1, A2)> : public internal::CallbackBase {
295 Callback() : CallbackBase(NULL, NULL) { }
303 // return the exact Callback<> type. See base/bind.h for details.
305 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
322 class Callback<R(A1, A2, A3)> : public internal::CallbackBase {
330 Callback() : CallbackBase(NULL, NULL) { }
338 // return the exact Callback<> type. See base/bind.h for details.
340 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
359 class Callback<R(A1, A2, A3, A4)> : public internal::CallbackBase {
368 Callback() : CallbackBase(NULL, NULL) { }
376 // return the exact Callback<> type. See base/bind.h for details.
378 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
400 class Callback<R(A1, A2, A3, A4, A5)> : public internal::CallbackBase {
410 Callback() : CallbackBase(NULL, NULL) { }
418 // return the exact Callback<> type. See base/bind.h for details.
420 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
444 class Callback<R(A1, A2, A3, A4, A5, A6)> : public internal::CallbackBase {
455 Callback() : CallbackBase(NULL, NULL) { }
463 // return the exact Callback<> type. See base/bind.h for details.
465 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
492 typedef Callback<void(void)> Closure;