/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/sitecategories/nsISiteCategory.idl
*/
#ifndef __gen_nsISiteCategory_h__
#define __gen_nsISiteCategory_h__
#include "nsISupports.h"
#include "nsIPrincipal.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: nsISiteCategory */
#define NS_ISITECATEGORY_IID_STR "3aa4a54f-0091-4815-a962-6eced394b539"
#define NS_ISITECATEGORY_IID \
{0x3aa4a54f, 0x0091, 0x4815, \
{ 0xa9, 0x62, 0x6e, 0xce, 0xd3, 0x94, 0xb5, 0x39 }}
class NS_NO_VTABLE nsISiteCategory : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ISITECATEGORY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISiteCategory;
/* ACString getCategory (in nsIPrincipal aPrincipal); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCategory(nsIPrincipal *aPrincipal, nsACString& _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISITECATEGORY \
NS_IMETHOD GetCategory(nsIPrincipal *aPrincipal, nsACString& _retval) 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_NSISITECATEGORY \
nsresult GetCategory(nsIPrincipal *aPrincipal, nsACString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISITECATEGORY(_to) \
NS_IMETHOD GetCategory(nsIPrincipal *aPrincipal, nsACString& _retval) override { return _to GetCategory(aPrincipal, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISITECATEGORY(_to) \
NS_IMETHOD GetCategory(nsIPrincipal *aPrincipal, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aPrincipal, _retval); }
#endif /* __gen_nsISiteCategory_h__ */