/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/permission/nsIPermissionMonitor.idl */ #ifndef __gen_nsIPermissionMonitor_h__ #define __gen_nsIPermissionMonitor_h__ #include "nsISupports.h" #include "js/GCAnnotations.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsIPermissionMonitor */ #define NS_IPERMISSIONMONITOR_IID_STR "c5765549-7cf1-4b3d-9baa-5e74282be542" #define NS_IPERMISSIONMONITOR_IID \ {0xc5765549, 0x7cf1, 0x4b3d, \ { 0x9b, 0xaa, 0x5e, 0x74, 0x28, 0x2b, 0xe5, 0x42 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIPermissionMonitor) nsIPermissionMonitor : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IPERMISSIONMONITOR_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIPermissionMonitor; /* void startMonitoring (in AString aCapabilityName); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPermissionMonitor_startMonitoring) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartMonitoring(const nsAString& aCapabilityName) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIPERMISSIONMONITOR \ NS_IMETHOD StartMonitoring(const nsAString& aCapabilityName) override; /* Use this macro when declaring the members of this interface when the class doesn't implement the interface. This is useful for forwarding. */ #define NS_DECL_NON_VIRTUAL_NSIPERMISSIONMONITOR \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIPermissionMonitor_startMonitoring)\ nsresult StartMonitoring(const nsAString& aCapabilityName); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIPERMISSIONMONITOR(_to) \ NS_IMETHOD StartMonitoring(const nsAString& aCapabilityName) override { return _to StartMonitoring(aCapabilityName); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIPERMISSIONMONITOR(_to) \ NS_IMETHOD StartMonitoring(const nsAString& aCapabilityName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartMonitoring(aCapabilityName); } #endif /* __gen_nsIPermissionMonitor_h__ */