Lines Matching defs:base
8 #include "base/callback_forward.h"
9 #include "base/callback_internal.h"
10 #include "base/template_util.h"
13 // Closure should #include "base/callback_forward.h" instead of this file.
29 // A callback with no unbound input parameters (base::Callback<void()>)
30 // is called a base::Closure. Note that this is NOT the same as what other
51 // base::Callback<int()> func_cb = base::Bind(&Return5);
59 // class Ref : public base::RefCountedThreadSafe<Ref> {
65 // base::Callback<void()> ref_cb = base::Bind(&Ref::Foo, ref);
78 // void DoSomething(const base::Callback<void(int, std::string)>& callback) {
83 // run). However, this precludes using base::Passed (see below).
85 // void DoSomething(const base::Callback<double(double)>& callback) {
96 // base::Callback<void(int, const std::string&)> cb = base::Bind(&MyFunc);
107 // base::Callback<void()> cb = base::Bind(&MyFunc, 23, "hello world");
110 // A callback with no unbound input parameters (base::Callback<void()>)
111 // is called a base::Closure. So we could have also written:
113 // base::Closure cb = base::Bind(&MyFunc, 23, "hello world");
118 // base::Closure cb = base::Bind(&MyClass::MyFunc, this, 23, "hello world");
126 // base::Callback<void(const std::string&)> cb = base::Bind(&MyFunc, 23);
139 // base::Bind(&MyClass::Foo, GetWeakPtr());
147 // base::Bind(&MyClass::Foo, base::Unretained(this));
156 // base::Bind(&MyClass::Foo, base::Owned(myclass));
168 // base::Callback<void(int)> cb =
169 // base::Bind(base::IgnoreResult(&DoSomething));
178 // Closure (base::Callback<void()> and base::Closure are the same thing).
184 // base::Closure foo_callback = base::Bind(&foo, base::Owned(pn));
194 // base::Closure cb = base::Bind(&TakesOwnership, base::Passed(&f));
205 // base::Closure cb = base::Bind(&TakesOneRef, f);
216 // base::Closure has_copy = base::Bind(&foo, n);
217 // base::Closure has_ref = base::Bind(&foo, base::ConstRef(n));
283 // file-level comment in base/bind_helpers.h for more info.
345 namespace base {
356 // please include "base/callback_forward.h" instead.
403 } // namespace base