summaryrefslogtreecommitdiff
path: root/dom/base/nsIGlobalObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsIGlobalObject.h')
-rw-r--r--dom/base/nsIGlobalObject.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/base/nsIGlobalObject.h b/dom/base/nsIGlobalObject.h
index 6dfae4fbe4..1438803317 100644
--- a/dom/base/nsIGlobalObject.h
+++ b/dom/base/nsIGlobalObject.h
@@ -19,6 +19,13 @@ class nsCString;
class nsCycleCollectionTraversalCallback;
class nsIPrincipal;
+namespace mozilla{
+namespace dom{
+class VoidFunction;
+}
+}
+
+
class nsIGlobalObject : public nsISupports
{
nsTArray<nsCString> mHostObjectURIs;
@@ -72,6 +79,10 @@ public:
void UnlinkHostObjectURIs();
void TraverseHostObjectURIs(nsCycleCollectionTraversalCallback &aCb);
+ virtual bool IsInSyncOperation() { return false; }
+
+ void QueueMicrotask(mozilla::dom::VoidFunction& aCallback);
+
protected:
virtual ~nsIGlobalObject();