Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/cookiebanners/nsICookieRule.idl
*/
#ifndef __gen_nsICookieRule_h__
#define __gen_nsICookieRule_h__
#include "nsISupports.h"
#include "nsICookie.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsICookieRule */
#define NS_ICOOKIERULE_IID_STR "bf049b1e-8a05-481f-a120-332ea1bd65ef"
#define NS_ICOOKIERULE_IID \
{0xbf049b1e, 0x8a05, 0x481f, \
{ 0xa1, 0x20, 0x33, 0x2e, 0xa1, 0xbd, 0x65, 0xef }}
class NS_NO_VTABLE nsICookieRule : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIERULE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICookieRule;
/* readonly attribute nsICookie cookie; */
NS_IMETHOD GetCookie(nsICookie **aCookie) = 0;
/* readonly attribute int64_t expiryRelative; */
NS_IMETHOD GetExpiryRelative(int64_t *aExpiryRelative) = 0;
/* readonly attribute AUTF8String unsetValue; */
NS_IMETHOD GetUnsetValue(nsACString& aUnsetValue) = 0;
/* [noscript] nsICookieRule copyForDomain (in ACString aDomain); */
NS_IMETHOD CopyForDomain(const nsACString& aDomain, nsICookieRule **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieRule, NS_ICOOKIERULE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOOKIERULE \
NS_IMETHOD GetCookie(nsICookie **aCookie) override; \
NS_IMETHOD GetExpiryRelative(int64_t *aExpiryRelative) override; \
NS_IMETHOD GetUnsetValue(nsACString& aUnsetValue) override; \
NS_IMETHOD CopyForDomain(const nsACString& aDomain, nsICookieRule **_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_NSICOOKIERULE \
nsresult GetCookie(nsICookie **aCookie); \
nsresult GetExpiryRelative(int64_t *aExpiryRelative); \
nsresult GetUnsetValue(nsACString& aUnsetValue); \
nsresult CopyForDomain(const nsACString& aDomain, nsICookieRule **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIERULE(_to) \
NS_IMETHOD GetCookie(nsICookie **aCookie) override { return _to GetCookie(aCookie); } \
NS_IMETHOD GetExpiryRelative(int64_t *aExpiryRelative) override { return _to GetExpiryRelative(aExpiryRelative); } \
NS_IMETHOD GetUnsetValue(nsACString& aUnsetValue) override { return _to GetUnsetValue(aUnsetValue); } \
NS_IMETHOD CopyForDomain(const nsACString& aDomain, nsICookieRule **_retval) override { return _to CopyForDomain(aDomain, _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_NSICOOKIERULE(_to) \
NS_IMETHOD GetCookie(nsICookie **aCookie) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookie(aCookie); } \
NS_IMETHOD GetExpiryRelative(int64_t *aExpiryRelative) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpiryRelative(aExpiryRelative); } \
NS_IMETHOD GetUnsetValue(nsACString& aUnsetValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnsetValue(aUnsetValue); } \
NS_IMETHOD CopyForDomain(const nsACString& aDomain, nsICookieRule **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CopyForDomain(aDomain, _retval); }
#endif /* __gen_nsICookieRule_h__ */