Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/cookie/nsICookieValidation.idl
*/
#ifndef __gen_nsICookieValidation_h__
#define __gen_nsICookieValidation_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsICookieValidation */
#define NS_ICOOKIEVALIDATION_IID_STR "79c99e25-8b06-4e68-8935-bdbe22fa4010"
#define NS_ICOOKIEVALIDATION_IID \
{0x79c99e25, 0x8b06, 0x4e68, \
{ 0x89, 0x35, 0xbd, 0xbe, 0x22, 0xfa, 0x40, 0x10 }}
class NS_NO_VTABLE nsICookieValidation : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICOOKIEVALIDATION_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICookieValidation;
enum ValidationError : uint32_t {
eOK = 0,
eRejectedEmptyNameAndValue = 1,
eRejectedNameValueOversize = 2,
eRejectedInvalidCharName = 3,
eRejectedInvalidCharValue = 4,
eRejectedInvalidPath = 5,
eRejectedInvalidDomain = 6,
eRejectedInvalidPrefix = 7,
eRejectedNoneRequiresSecure = 8,
eRejectedPartitionedRequiresSecure = 9,
eRejectedHttpOnlyButFromScript = 10,
eRejectedSecureButNonHttps = 11,
eRejectedForNonSameSiteness = 12,
eRejectedAttributePathOversize = 13,
eRejectedAttributeDomainOversize = 14,
eRejectedAttributeExpiryOversize = 15,
};
/* readonly attribute nsICookieValidation_ValidationError result; */
NS_IMETHOD GetResult(nsICookieValidation::ValidationError *aResult) = 0;
/* readonly attribute AString errorString; */
NS_IMETHOD GetErrorString(nsAString& aErrorString) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOOKIEVALIDATION \
NS_IMETHOD GetResult(nsICookieValidation::ValidationError *aResult) override; \
NS_IMETHOD GetErrorString(nsAString& aErrorString) 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_NSICOOKIEVALIDATION \
nsresult GetResult(nsICookieValidation::ValidationError *aResult); \
nsresult GetErrorString(nsAString& aErrorString);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIEVALIDATION(_to) \
NS_IMETHOD GetResult(nsICookieValidation::ValidationError *aResult) override { return _to GetResult(aResult); } \
NS_IMETHOD GetErrorString(nsAString& aErrorString) override { return _to GetErrorString(aErrorString); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOOKIEVALIDATION(_to) \
NS_IMETHOD GetResult(nsICookieValidation::ValidationError *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
NS_IMETHOD GetErrorString(nsAString& aErrorString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorString(aErrorString); }
#endif /* __gen_nsICookieValidation_h__ */