summaryrefslogtreecommitdiffstats
path: root/dom/chrome-webidl/PlacesObservers.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/chrome-webidl/PlacesObservers.webidl')
-rw-r--r--dom/chrome-webidl/PlacesObservers.webidl8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/chrome-webidl/PlacesObservers.webidl b/dom/chrome-webidl/PlacesObservers.webidl
index 662d8558ff..77c917a3c5 100644
--- a/dom/chrome-webidl/PlacesObservers.webidl
+++ b/dom/chrome-webidl/PlacesObservers.webidl
@@ -11,6 +11,12 @@ interface PlacesWeakCallbackWrapper {
constructor(PlacesEventCallback callback);
};
+// Counters for number of events sent in the current session.
+[ChromeOnly, Exposed=Window]
+interface PlacesEventCounts {
+ readonly maplike<DOMString, unsigned long long>;
+};
+
// Global singleton which should handle all events for places.
[ChromeOnly, Exposed=Window]
namespace PlacesObservers {
@@ -28,4 +34,6 @@ namespace PlacesObservers {
PlacesWeakCallbackWrapper listener);
[Throws]
undefined notifyListeners(sequence<PlacesEvent> events);
+
+ readonly attribute PlacesEventCounts counts;
};