Lines Matching defs:RefCounted
47 // safety standpoint. Should be DCHECK'd from the methods of RefCounted
127 // RefCounted below for rare pre-existing use cases where thread-safety was
144 // knock-off of WebKit's RefCounted<T> class. To use this, just extend your
147 // class MyFoo : public base::RefCounted<MyFoo> {
150 // friend class base::RefCounted<MyFoo>;
158 // The ref count manipulation to RefCounted is NOT thread safe and has DCHECKs
159 // to trap unsafe cross thread usage. A subclass instance of RefCounted can be
161 // count is more than 1, the RefCounted class verifies the ref updates are made
182 // - Behavior parity to Blink's WTF::RefCounted, whose count starts from one.
183 // And start-from-one ref count is a step to merge WTF::RefCounted into
184 // base::RefCounted.
191 class RefCounted;
196 RefCounted<T, DefaultRefCountedTraits>::DeleteInternal(x);
201 class RefCounted : public subtle::RefCountedBase {
206 RefCounted() : subtle::RefCountedBase(T::kRefCountPreference) {}
222 ~RefCounted() = default;
231 RefCounted(const RefCounted&) = delete;
232 RefCounted& operator=(const RefCounted&) = delete;
253 // A thread-safe variant of RefCounted<T>
266 // too. See the comment above the RefCounted definition for details.