Lines Matching refs:ObserverListBase
69 class ObserverListBase
70 : public SupportsWeakPtr<ObserverListBase<ObserverType>> {
87 explicit Iterator(ObserverListBase<ObserverType>* list);
92 WeakPtr<ObserverListBase<ObserverType>> list_;
97 ObserverListBase() : notify_depth_(0), type_(NOTIFY_ALL) {} in ObserverListBase() function
98 explicit ObserverListBase(NotificationType type) in ObserverListBase() function
127 friend class ObserverListBase::Iterator;
129 DISALLOW_COPY_AND_ASSIGN(ObserverListBase);
133 ObserverListBase<ObserverType>::Iterator::Iterator( in Iterator()
134 ObserverListBase<ObserverType>* list) in Iterator()
143 ObserverListBase<ObserverType>::Iterator::~Iterator() { in ~Iterator()
149 ObserverType* ObserverListBase<ObserverType>::Iterator::GetNext() { in GetNext()
161 void ObserverListBase<ObserverType>::AddObserver(ObserverType* obs) { in AddObserver()
171 void ObserverListBase<ObserverType>::RemoveObserver(ObserverType* obs) { in RemoveObserver()
185 bool ObserverListBase<ObserverType>::HasObserver( in HasObserver()
195 void ObserverListBase<ObserverType>::Clear() { in Clear()
207 void ObserverListBase<ObserverType>::Compact() { in Compact()
214 class ObserverList : public ObserverListBase<ObserverType> {
216 typedef typename ObserverListBase<ObserverType>::NotificationType
221 : ObserverListBase<ObserverType>(type) {} in ObserverList()
226 ObserverListBase<ObserverType>::Compact(); in ~ObserverList()
227 DCHECK_EQ(ObserverListBase<ObserverType>::size(), 0U); in ~ObserverList()
232 return ObserverListBase<ObserverType>::size() != 0; in might_have_observers()
239 typename base::ObserverListBase<ObserverType>::Iterator \