Lines Matching defs:base
12 #include "base/atomic_ref_count.h"
13 #include "base/compiler_specific.h"
14 #include "base/logging.h"
15 #include "base/memory/scoped_refptr.h"
18 namespace base {
63 friend scoped_refptr<U> base::AdoptRef(U*);
105 friend scoped_refptr<U> base::AdoptRef(U*);
143 // A base class for reference counted classes. Otherwise, known as a cheap
147 // class MyFoo : public base::RefCounted<MyFoo> {
150 // friend class base::RefCounted<MyFoo>;
172 // created by base::AdoptRef() or base::MakeRefCounted(). We can use
173 // base::MakeRefCounted() to create create both type of ref counted object.
184 // base::RefCounted.
187 static constexpr ::base::subtle::StartRefCountFromOneTag \
188 kRefCountPreference = ::base::subtle::kStartRefCountFromOneTag
255 // class MyFoo : public base::RefCountedThreadSafe<MyFoo> {
262 // friend class base::RefCountedThreadSafe<MyFoo>;
305 : public base::RefCountedThreadSafe<base::RefCountedData<T>> {
314 friend class base::RefCountedThreadSafe<base::RefCountedData<T>>;
318 } // namespace base