Home
last modified time | relevance | path

Searched refs:ObserverType (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/
Dobserver_list.h65 template <typename ObserverType>
68 template <class ObserverType>
70 : public SupportsWeakPtr<ObserverListBase<ObserverType>> {
87 explicit Iterator(ObserverListBase<ObserverType>* list);
89 ObserverType* GetNext();
92 WeakPtr<ObserverListBase<ObserverType>> list_;
103 void AddObserver(ObserverType* obs);
106 void RemoveObserver(ObserverType* obs);
109 bool HasObserver(const ObserverType* observer) const;
119 friend class ObserverListThreadSafe<ObserverType>;
[all …]
Dobserver_list_threadsafe.h60 template <class ObserverType>
100 template <class ObserverType>
103 ObserverListThreadSafe<ObserverType>,
104 ObserverListThreadSafeTraits<ObserverType>> {
106 typedef typename ObserverList<ObserverType>::NotificationType
110 : type_(ObserverListBase<ObserverType>::NOTIFY_ALL) {} in ObserverListThreadSafe()
115 void AddObserver(ObserverType* obs) { in AddObserver()
121 ObserverList<ObserverType>* list = nullptr; in AddObserver()
137 void RemoveObserver(ObserverType* obs) { in RemoveObserver()
139 ObserverList<ObserverType>* list = nullptr; in RemoveObserver()
[all …]