Lines Matching defs:const
23 bool HasOneRef() const { return ref_count_ == 1; }
32 void AddRef() const { AddRefImpl(); }
35 bool Release() const {
59 bool IsOnValidSequence() const { return true; }
65 void Adopted() const {}
68 void AddRefImpl() const;
70 void AddRefImpl() const { ++ref_count_; }
75 RefCountedBase(const RefCountedBase&) = delete;
76 RefCountedBase& operator=(const RefCountedBase&) = delete;
81 bool HasOneRef() const;
95 bool Release() const { return ReleaseImpl(); }
96 void AddRef() const { AddRefImpl(); }
99 bool Release() const;
100 void AddRef() const;
107 void Adopted() const {}
109 ALWAYS_INLINE void AddRefImpl() const { ref_count_.Increment(); }
111 ALWAYS_INLINE bool ReleaseImpl() const {
120 RefCountedThreadSafeBase(const RefCountedThreadSafeBase&) = delete;
121 RefCountedThreadSafeBase& operator=(const RefCountedThreadSafeBase&) = delete;
195 static void Destruct(const T* x) {
208 void AddRef() const { subtle::RefCountedBase::AddRef(); }
210 void Release() const {
217 Traits::Destruct(static_cast<const T*>(this));
227 static void DeleteInternal(const U* x) {
231 RefCounted(const RefCounted&) = delete;
232 RefCounted& operator=(const RefCounted&) = delete;
243 static void Destruct(const T* x) {
276 void AddRef() const { subtle::RefCountedThreadSafeBase::AddRef(); }
278 void Release() const {
281 Traits::Destruct(static_cast<const T*>(this));
291 static void DeleteInternal(const U* x) {
295 RefCountedThreadSafe(const RefCountedThreadSafe&) = delete;
296 RefCountedThreadSafe& operator=(const RefCountedThreadSafe&) = delete;
308 RefCountedData(const T& in_value) : data(in_value) {}