Lines Matching refs:WeakReference
10 WeakReference::Flag::Flag() : is_valid_(true) {
17 void WeakReference::Flag::Invalidate() {
25 bool WeakReference::Flag::IsValid() const {
31 WeakReference::Flag::~Flag() = default;
33 WeakReference::WeakReference() = default;
35 WeakReference::WeakReference(const scoped_refptr<Flag>& flag) : flag_(flag) {}
37 WeakReference::~WeakReference() = default;
39 WeakReference::WeakReference(WeakReference&& other) = default;
41 WeakReference::WeakReference(const WeakReference& other) = default;
43 bool WeakReference::is_valid() const {
53 WeakReference WeakReferenceOwner::GetRef() const {
56 flag_ = new WeakReference::Flag();
58 return WeakReference(flag_);
72 WeakPtrBase::WeakPtrBase(const WeakReference& ref, uintptr_t ptr)