Lines Matching defs:base
13 #include "base/callback_forward.h"
14 #include "base/callback_internal.h"
15 #include "base/template_util.h"
18 // Closure should #include "base/callback_forward.h" instead of this file.
34 // A callback with no unbound input parameters (base::Callback<void(void)>)
35 // is called a base::Closure. Note that this is NOT the same as what other
56 // base::Callback<int(void)> func_cb = base::Bind(&Return5);
64 // class Ref : public base::RefCountedThreadSafe<Ref> {
70 // base::Callback<void(void)> ref_cb = base::Bind(&Ref::Foo, ref);
83 // void DoSomething(const base::Callback<void(int, std::string)>& callback) {
88 // run). However, this precludes using base::Passed (see below).
90 // void DoSomething(const base::Callback<double(double)>& callback) {
101 // base::Callback<void(int, const std::string&)> cb = base::Bind(&MyFunc);
112 // base::Callback<void(void)> cb = base::Bind(&MyFunc, 23, "hello world");
115 // A callback with no unbound input parameters (base::Callback<void(void)>)
116 // is called a base::Closure. So we could have also written:
118 // base::Closure cb = base::Bind(&MyFunc, 23, "hello world");
123 // base::Closure cb = base::Bind(&MyClass::MyFunc, this, 23, "hello world");
131 // base::Callback<void(const std::string&)> cb = base::Bind(&MyFunc, 23);
144 // base::Bind(&MyClass::Foo, GetWeakPtr());
152 // base::Bind(&MyClass::Foo, base::Unretained(this));
161 // base::Bind(&MyClass::Foo, base::Owned(myclass));
173 // base::Callback<void<int>) cb =
174 // base::Bind(base::IgnoreResult(&DoSomething));
183 // Closure (base::Callback<void(void)> and base::Closure are the same thing).
189 // base::Closure foo_callback = base::Bind(&foo, base::Owned(pn));
199 // base::Closure cb = base::Bind(&TakesOwnership, base::Passed(&f));
210 // base::Closure cb = base::Bind(&TakesOneRef, f);
221 // base::Closure has_copy = base::Bind(&foo, n);
222 // base::Closure has_ref = base::Bind(&foo, base::ConstRef(n));
288 // file-level comment in base/bind_helpers.h for more info.
350 namespace base {
361 // please include "base/callback_forward.h" instead.
378 // return the exact Callback<> type. See base/bind.h for details.
418 // return the exact Callback<> type. See base/bind.h for details.
459 // return the exact Callback<> type. See base/bind.h for details.
503 // return the exact Callback<> type. See base/bind.h for details.
550 // return the exact Callback<> type. See base/bind.h for details.
601 // return the exact Callback<> type. See base/bind.h for details.
655 // return the exact Callback<> type. See base/bind.h for details.
712 // return the exact Callback<> type. See base/bind.h for details.
768 } // namespace base