Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/extensions/permissions/nsIRemotePermissionService.idl
*/
#ifndef __gen_nsIRemotePermissionService_h__
#define __gen_nsIRemotePermissionService_h__
#include "nsISupports.h"
#include "js/Value.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
class nsIPrincipal; /* forward declaration */
/* starting interface: nsIRemotePermissionService */
#define NS_IREMOTEPERMISSIONSERVICE_IID_STR "a4b1b3b1-b68a-4129-aa2f-eb086162a8c7"
#define NS_IREMOTEPERMISSIONSERVICE_IID \
{0xa4b1b3b1, 0xb68a, 0x4129, \
{ 0xaa, 0x2f, 0xeb, 0x08, 0x61, 0x62, 0xa8, 0xc7 }}
class NS_NO_VTABLE nsIRemotePermissionService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREMOTEPERMISSIONSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIRemotePermissionService;
/* void init (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(void) = 0;
/* readonly attribute Promise isInitialized; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsInitialized(::mozilla::dom::Promise * * aIsInitialized) = 0;
/* attribute jsval testAllowedPermissionValues; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTestAllowedPermissionValues(JS::MutableHandle<JS::Value> aTestAllowedPermissionValues) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTestAllowedPermissionValues(JS::Handle<JS::Value> aTestAllowedPermissionValues) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIRemotePermissionService, NS_IREMOTEPERMISSIONSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIREMOTEPERMISSIONSERVICE \
NS_IMETHOD Init(void) override; \
NS_IMETHOD GetIsInitialized(::mozilla::dom::Promise * * aIsInitialized) override; \
NS_IMETHOD GetTestAllowedPermissionValues(JS::MutableHandle<JS::Value> aTestAllowedPermissionValues) override; \
NS_IMETHOD SetTestAllowedPermissionValues(JS::Handle<JS::Value> aTestAllowedPermissionValues) 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_NSIREMOTEPERMISSIONSERVICE \
nsresult Init(void); \
nsresult GetIsInitialized(::mozilla::dom::Promise * * aIsInitialized); \
nsresult GetTestAllowedPermissionValues(JS::MutableHandle<JS::Value> aTestAllowedPermissionValues); \
nsresult SetTestAllowedPermissionValues(JS::Handle<JS::Value> aTestAllowedPermissionValues);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIREMOTEPERMISSIONSERVICE(_to) \
NS_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD GetIsInitialized(::mozilla::dom::Promise * * aIsInitialized) override { return _to GetIsInitialized(aIsInitialized); } \
NS_IMETHOD GetTestAllowedPermissionValues(JS::MutableHandle<JS::Value> aTestAllowedPermissionValues) override { return _to GetTestAllowedPermissionValues(aTestAllowedPermissionValues); } \
NS_IMETHOD SetTestAllowedPermissionValues(JS::Handle<JS::Value> aTestAllowedPermissionValues) override { return _to SetTestAllowedPermissionValues(aTestAllowedPermissionValues); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIREMOTEPERMISSIONSERVICE(_to) \
NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD GetIsInitialized(::mozilla::dom::Promise * * aIsInitialized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitialized(aIsInitialized); } \
NS_IMETHOD GetTestAllowedPermissionValues(JS::MutableHandle<JS::Value> aTestAllowedPermissionValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTestAllowedPermissionValues(aTestAllowedPermissionValues); } \
NS_IMETHOD SetTestAllowedPermissionValues(JS::Handle<JS::Value> aTestAllowedPermissionValues) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTestAllowedPermissionValues(aTestAllowedPermissionValues); }
#define NS_REMOTEPERMISSIONSERVICE_CONTRACTID "@mozilla.org/remote-permission-service;1"
#endif /* __gen_nsIRemotePermissionService_h__ */