Lines Matching refs:aTopic
110 nsresult nsObserverService::GetObserverList(const char* aTopic, nsObserverList** anObserverList)
128 nsCStringKey key(aTopic);
149 NS_IMETHODIMP nsObserverService::AddObserver(nsIObserver* anObserver, const char* aTopic, PRBool ownsWeak)
154 if (anObserver == nsnull || aTopic == nsnull)
157 rv = GetObserverList(aTopic, &anObserverList);
163 NS_IMETHODIMP nsObserverService::RemoveObserver(nsIObserver* anObserver, const char* aTopic)
168 if (anObserver == nsnull || aTopic == nsnull)
171 rv = GetObserverList(aTopic, &anObserverList);
177 NS_IMETHODIMP nsObserverService::EnumerateObservers(const char* aTopic, nsISimpleEnumerator** anEnumerator)
182 if (anEnumerator == nsnull || aTopic == nsnull)
185 rv = GetObserverList(aTopic, &anObserverList);
191 // Enumerate observers of aTopic and call Observe on each.
193 const char *aTopic,
199 rv = EnumerateObservers( aTopic, getter_AddRefs(observers) );
208 observer->Observe( aSubject, aTopic, someData );
217 observer->Observe( aSubject, aTopic, someData );
219 PR_LOG(observerServiceLog, PR_LOG_DEBUG, ("Notification - %s\n", aTopic ? aTopic : "undefined"));