Lines Matching full:callback
21 // New, super-duper, unified Callback system. This will eventually replace
27 // The templated Callback class is a generalized function object. Together
39 // The Callback objects themselves should be passed by const-reference, and
51 // base::Callback<int(int)> func_cb = base::Bind(&Return5);
65 // base::Callback<int(void)> ref_cb = base::Bind(&Ref::Foo, ref.get());
73 // * WARNING: You must be sure the referee outlives the callback!
84 // base::Callback<int(void)> base::no_ref_cb =
95 // base::Callback<int(void)> bound_copy_cb = base::Bind(&Identity, value);
96 // base::Callback<int(void)> bound_ref_cb =
107 // The design Callback and Bind is heavily influenced by C++'s
108 // tr1::function/tr1::bind, and by the "Google Callback" system used inside
115 // 1) The Callback classes.
119 // The Callback classes represent a generic function pointer. Internally,
121 // and all its bound parameters. Each Callback specialization has a templated
127 // Callback's constructor is takes the InvokerStorageHolder<> that has the
183 // Furthermore, in Chromium, it is desirable for the Callback to take a
201 // The Google callback system also does not support refcounting. Furthermore,
219 // First, we forward declare the Callback class template. This informs the
221 // signature that the Callback is representing.
227 class Callback;
236 class Callback<R(void)> : public internal::CallbackBase {
239 class Callback<R($for ARG , [[A$(ARG)]])> : public internal::CallbackBase {
248 Callback() : CallbackBase(NULL, NULL) { }
256 // return the exact Callback<> type. See base/bind.h for details.
258 Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
281 typedef Callback<void(void)> Closure;