Home | History | Annotate | Download | only in base

Lines Matching defs:list_

114         : list_(const_cast<ObserverList*>(list)->AsWeakPtr()),
119 DCHECK(list_);
120 DCHECK(allow_reentrancy || !list_->live_iterator_count_);
122 ++list_->live_iterator_count_;
126 if (!list_)
129 DCHECK_GT(list_->live_iterator_count_, 0);
130 if (--list_->live_iterator_count_ == 0)
131 list_->Compact();
135 : list_(other.list_),
138 if (list_)
139 ++list_->live_iterator_count_;
144 swap(list_, other.list_);
152 (list_.get() == other.list_.get() && index_ == other.index_);
158 if (list_) {
188 DCHECK(list_);
190 return list_->observers_[index_];
194 DCHECK(list_);
196 while (index_ < max_index && !list_->observers_[index_])
201 return std::min(max_index_, list_->observers_.size());
204 bool is_end() const { return !list_ || index_ == clamped_max_index(); }
206 WeakPtr<ObserverList> list_;