summaryrefslogtreecommitdiffstats
path: root/base/observer_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/observer_list.h')
-rw-r--r--base/observer_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/observer_list.h b/base/observer_list.h
index d34e838..52571df 100644
--- a/base/observer_list.h
+++ b/base/observer_list.h
@@ -86,6 +86,14 @@ class ObserverList {
}
}
+ size_t size() const {
+ return observers_.size();
+ }
+
+ ObserverType* GetElementAt(int index) const {
+ return observers_[index];
+ }
+
// An iterator class that can be used to access the list of observers. See
// also the FOREACH_OBSERVER macro defined below.
class Iterator {