Home
last modified time | relevance | path

Searched refs:observers_ (Results 1 – 25 of 82) sorted by relevance

1234

/external/chromium/base/
Dobserver_list.h86 list.observers_.size()) { in Iterator()
96 ListType& observers = list_.observers_; in GetNext()
116 DCHECK(find(observers_.begin(), observers_.end(), obs) == observers_.end()) in AddObserver()
118 observers_.push_back(obs); in AddObserver()
124 std::find(observers_.begin(), observers_.end(), obs); in RemoveObserver()
125 if (it != observers_.end()) { in RemoveObserver()
129 observers_.erase(it); in RemoveObserver()
135 for (size_t i = 0; i < observers_.size(); ++i) { in HasObserver()
136 if (observers_[i] == observer) in HasObserver()
144 for (typename ListType::iterator it = observers_.begin(); in Clear()
[all …]
/external/chromium/chrome/browser/prefs/
Dpref_change_registrar.cc31 if (observers_.find(registration) != observers_.end()) { in Add()
35 observers_.insert(registration); in Add()
46 observers_.find(registration); in Remove()
47 if (it == observers_.end()) { in Remove()
52 observers_.erase(it); in Remove()
57 for (std::set<ObserverRegistration>::const_iterator it = observers_.begin(); in RemoveAll()
58 it != observers_.end(); ++it) { in RemoveAll()
61 observers_.clear(); in RemoveAll()
66 return observers_.empty(); in IsEmpty()
Doverlay_persistent_pref_store.cc23 observers_.AddObserver(observer); in AddObserver()
27 observers_.RemoveObserver(observer); in RemoveObserver()
64 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key)); in SetValue()
74 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key)); in RemoveValue()
100 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key)); in ReportValueChanged()
105 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, OnPrefValueChanged(key)); in OnPrefValueChanged()
109 FOR_EACH_OBSERVER(PrefStore::Observer, observers_, in OnInitializationCompleted()
Dvalue_map_pref_store.cc22 observers_.AddObserver(observer); in AddObserver()
26 observers_.RemoveObserver(observer); in RemoveObserver()
31 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); in SetValue()
36 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); in RemoveValue()
40 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted()); in NotifyInitializationCompleted()
Dtesting_pref_store.cc27 observers_.AddObserver(observer); in AddObserver()
31 observers_.RemoveObserver(observer); in RemoveObserver()
72 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); in NotifyPrefValueChanged()
76 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted()); in NotifyInitializationCompleted()
80 FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); in ReportValueChanged()
/external/chromium/chrome/browser/chromeos/
Dsms_observer.cc39 for (ObserversMap::iterator it_observer = observers_.begin(); in UpdateObservers()
40 it_observer != observers_.end();) { in UpdateObservers()
52 observers_.erase(it_observer++); in UpdateObservers()
62 observers_.find((*it_network)->device_path()); in UpdateObservers()
63 if (it_observer == observers_.end()) { in UpdateObservers()
65 observers_.insert(ObserversMap::value_type((*it_network)->device_path(), in UpdateObservers()
78 for (ObserversMap::iterator it = observers_.begin(); in DisconnectAll()
79 it != observers_.end(); ++it) { in DisconnectAll()
83 observers_.clear(); in DisconnectAll()
Dwm_message_listener.h37 observers_.AddObserver(observer); in AddObserver()
41 observers_.RemoveObserver(observer); in RemoveObserver()
57 ObserverList<Observer> observers_;
/external/chromium/chrome/browser/automation/
Dautomation_tab_helper.cc45 observers_.AddObserver(observer); in AddObserver()
49 observers_.RemoveObserver(observer); in RemoveObserver()
67 FOR_EACH_OBSERVER(TabEventObserver, observers_, in DidStartLoading()
79 FOR_EACH_OBSERVER(TabEventObserver, observers_, in DidStopLoading()
97 FOR_EACH_OBSERVER(TabEventObserver, observers_, in OnTabOrRenderViewDestroyed()
131 FOR_EACH_OBSERVER(TabEventObserver, observers_, in OnWillPerformClientRedirect()
144 FOR_EACH_OBSERVER(TabEventObserver, observers_, in OnDidCompleteOrCancelClientRedirect()
/external/chromium/chrome/browser/chromeos/cros/
Dscreen_lock_library.cc30 observers_.AddObserver(observer); in AddObserver()
34 observers_.RemoveObserver(observer); in RemoveObserver()
67 FOR_EACH_OBSERVER(Observer, observers_, LockScreen(this)); in LockScreen()
78 FOR_EACH_OBSERVER(Observer, observers_, UnlockScreen(this)); in UnlockScreen()
89 FOR_EACH_OBSERVER(Observer, observers_, UnlockScreenFailed(this)); in UnlockScreenFailed()
109 ObserverList<Observer> observers_; member in chromeos::ScreenLockLibraryImpl
Dbrightness_library.cc31 observers_.AddObserver(observer); in AddObserver()
35 observers_.RemoveObserver(observer); in RemoveObserver()
65 observers_, in OnBrightnessChanged()
71 ObserverList<Observer> observers_; member in chromeos::BrightnessLibraryImpl
Dupdate_library.cc32 observers_.AddObserver(observer); in AddObserver()
36 observers_.RemoveObserver(observer); in RemoveObserver()
40 return observers_.HasObserver(observer); in HasObserver()
91 FOR_EACH_OBSERVER(Observer, observers_, UpdateStatusChanged(this)); in UpdateStatus()
103 ObserverList<Observer> observers_; member in chromeos::UpdateLibraryImpl
Dpower_library.cc38 observers_.AddObserver(observer); in AddObserver()
42 observers_.RemoveObserver(observer); in RemoveObserver()
132 FOR_EACH_OBSERVER(Observer, observers_, PowerChanged(this)); in UpdatePowerStatus()
144 FOR_EACH_OBSERVER(Observer, observers_, SystemResumed()); in SystemResumed()
147 ObserverList<Observer> observers_; member in chromeos::PowerLibraryImpl
Dmock_mount_library.cc26 observers_.AddObserver(observer); in AddObserverInternal()
31 observers_.RemoveObserver(observer); in RemoveObserverInternal()
125 FOR_EACH_OBSERVER(Observer, observers_, DiskChanged(evt, disk)); in UpdateDiskChanged()
134 FOR_EACH_OBSERVER(Observer, observers_, DeviceChanged(evt, path)); in UpdateDeviceChanged()
Dburn_library.cc36 ObserverList<BurnLibrary::Observer> observers_; member in chromeos::BurnLibraryImpl
77 observers_.AddObserver(observer); in AddObserver()
81 observers_.RemoveObserver(observer); in RemoveObserver()
142 FOR_EACH_OBSERVER(Observer, observers_, ProgressUpdated(this, evt, status)); in UpdateBurnStatus()
/external/chromium/net/url_request/
Durl_request_job_tracker.cc28 FOR_EACH_OBSERVER(JobObserver, observers_, OnJobAdded(job)); in AddNewJob()
40 FOR_EACH_OBSERVER(JobObserver, observers_, OnJobRemoved(job)); in RemoveJob()
45 FOR_EACH_OBSERVER(JobObserver, observers_, OnJobDone(job, status)); in OnJobDone()
51 FOR_EACH_OBSERVER(JobObserver, observers_, in OnJobRedirect()
58 FOR_EACH_OBSERVER(JobObserver, observers_, in OnBytesRead()
Durl_request_job_tracker.h67 observers_.AddObserver(observer); in AddObserver()
70 observers_.RemoveObserver(observer); in RemoveObserver()
96 ObserverList<JobObserver> observers_;
/external/chromium/chrome/browser/status_icons/
Dstatus_icon.cc17 observers_.AddObserver(observer); in AddObserver()
21 observers_.RemoveObserver(observer); in RemoveObserver()
25 return observers_.size() > 0; in HasObservers()
29 FOR_EACH_OBSERVER(Observer, observers_, OnClicked()); in DispatchClickEvent()
/external/chromium/chrome/browser/sync/notifier/
Dnon_blocking_invalidation_notifier.cc51 scoped_refptr<ObserverListThreadSafe<SyncNotifierObserver> > observers_; member in sync_notifier::NonBlockingInvalidationNotifier::Core
56 : observers_(new ObserverListThreadSafe<SyncNotifierObserver>()) { in Core()
86 observers_->AddObserver(observer); in AddObserver()
91 observers_->RemoveObserver(observer); in RemoveObserver()
115 observers_->Notify(&SyncNotifierObserver::OnIncomingNotification, in OnIncomingNotification()
122 observers_->Notify(&SyncNotifierObserver::OnNotificationStateChange, in OnNotificationStateChange()
129 observers_->Notify(&SyncNotifierObserver::StoreState, state); in StoreState()
Dinvalidation_notifier.cc42 observers_.AddObserver(observer); in AddObserver()
47 observers_.RemoveObserver(observer); in RemoveObserver()
118 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, in OnInvalidate()
123 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, in OnSessionStatusChanged()
130 FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, StoreState(state)); in WriteState()
/external/chromium/chrome/browser/extensions/
Dextension_toolbar_model.cc42 observers_.AddObserver(observer); in AddObserver()
46 observers_.RemoveObserver(observer); in RemoveObserver()
75 FOR_EACH_OBSERVER(Observer, observers_, BrowserActionMoved(extension, index)); in MoveBrowserAction()
135 FOR_EACH_OBSERVER(Observer, observers_, in AddExtension()
139 FOR_EACH_OBSERVER(Observer, observers_, in AddExtension()
159 FOR_EACH_OBSERVER(Observer, observers_, in RemoveExtension()
212 FOR_EACH_OBSERVER(Observer, observers_, in InitializeExtensionList()
219 FOR_EACH_OBSERVER(Observer, observers_, ModelLoaded()); in InitializeExtensionList()
/external/chromium/chrome/browser/net/
Dpref_proxy_config_service.cc46 observers_.AddObserver(observer); in AddObserver()
52 observers_.RemoveObserver(observer); in RemoveObserver()
82 FOR_EACH_OBSERVER(Observer, observers_, OnPrefProxyConfigChanged()); in InstallProxyConfig()
183 observers_.AddObserver(observer); in AddObserver()
188 observers_.RemoveObserver(observer); in RemoveObserver()
233 FOR_EACH_OBSERVER(net::ProxyConfigService::Observer, observers_, in OnProxyConfigChanged()
252 FOR_EACH_OBSERVER(net::ProxyConfigService::Observer, observers_, in OnPrefProxyConfigChanged()
/external/chromium/net/proxy/
Dproxy_config_service_android.cc12 observers_.AddObserver(observer); in AddObserver()
16 observers_.RemoveObserver(observer); in RemoveObserver()
47 FOR_EACH_OBSERVER(Observer, observers_, in UpdateProxySettings()
Dpolling_proxy_config_service.cc57 observers_.AddObserver(observer); in AddObserver()
62 observers_.RemoveObserver(observer); in RemoveObserver()
124 FOR_EACH_OBSERVER(Observer, observers_, in GetConfigCompleted()
145 ObserverList<Observer> observers_; member in net::PollingProxyConfigService::Core
/external/chromium/chrome/browser/ui/
Dbrowser_list.cc162 ObserverList<BrowserList::Observer> BrowserList::observers_; member in BrowserList
181 size_t original_count = observers_.size(); in AddBrowser()
182 FOR_EACH_OBSERVER(Observer, observers_, OnBrowserAdded(browser)); in AddBrowser()
183 DCHECK_EQ(original_count, observers_.size()) in AddBrowser()
258 size_t original_count = observers_.size(); in RemoveBrowser()
259 FOR_EACH_OBSERVER(Observer, observers_, OnBrowserRemoved(browser)); in RemoveBrowser()
260 DCHECK_EQ(original_count, observers_.size()) in RemoveBrowser()
291 observers_.AddObserver(observer); in AddObserver()
296 observers_.RemoveObserver(observer); in RemoveObserver()
504 FOR_EACH_OBSERVER(Observer, observers_, OnBrowserSetLastActive(browser)); in SetLastActive()
/external/chromium/chrome/browser/tabs/
Dtab_strip_model.cc78 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in ~TabStripModel()
85 observers_.AddObserver(observer); in AddObserver()
89 observers_.RemoveObserver(observer); in RemoveObserver()
101 return observers_.HasObserver(observer); in HasObserver()
158 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in InsertTabContentsAt()
177 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in ReplaceTabContentsAt()
184 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in ReplaceTabContentsAt()
215 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in DetachTabContentsAt()
220 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, TabStripEmpty()); in DetachTabContentsAt()
252 FOR_EACH_OBSERVER(TabStripModelObserver, observers_, in ActivateTabAt()
[all …]

1234