Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsISiteIntegrityService.idl
*/
#ifndef __gen_nsISiteIntegrityService_h__
#define __gen_nsISiteIntegrityService_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
class nsIURI; /* forward declaration */
/* starting interface: nsISiteIntegrityService */
#define NS_ISITEINTEGRITYSERVICE_IID_STR "030be57f-7bc2-48a7-a7c8-82716d86bdd6"
#define NS_ISITEINTEGRITYSERVICE_IID \
{0x030be57f, 0x7bc2, 0x48a7, \
{ 0xa7, 0xc8, 0x82, 0x71, 0x6d, 0x86, 0xbd, 0xd6 }}
class NS_NO_VTABLE nsISiteIntegrityService : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ISITEINTEGRITYSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISiteIntegrityService;
/* [must_use,noscript] void setProtected (in nsIURI aSourceURI, in const_OriginAttributesRef aOriginAttributes, in uint64_t aMaxAge); */
[[nodiscard]] NS_IMETHOD SetProtected(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, uint64_t aMaxAge) = 0;
/* [must_use,noscript] boolean isProtectedURI (in nsIURI aSourceURI, in const_OriginAttributesRef aOriginAttributes); */
[[nodiscard]] NS_IMETHOD IsProtectedURI(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, bool *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISITEINTEGRITYSERVICE \
[[nodiscard]] NS_IMETHOD SetProtected(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, uint64_t aMaxAge) override; \
[[nodiscard]] NS_IMETHOD IsProtectedURI(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, bool *_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_NSISITEINTEGRITYSERVICE \
[[nodiscard]] nsresult SetProtected(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, uint64_t aMaxAge); \
[[nodiscard]] nsresult IsProtectedURI(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISITEINTEGRITYSERVICE(_to) \
[[nodiscard]] NS_IMETHOD SetProtected(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, uint64_t aMaxAge) override { return _to SetProtected(aSourceURI, aOriginAttributes, aMaxAge); } \
[[nodiscard]] NS_IMETHOD IsProtectedURI(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, bool *_retval) override { return _to IsProtectedURI(aSourceURI, aOriginAttributes, _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_NSISITEINTEGRITYSERVICE(_to) \
[[nodiscard]] NS_IMETHOD SetProtected(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, uint64_t aMaxAge) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtected(aSourceURI, aOriginAttributes, aMaxAge); } \
[[nodiscard]] NS_IMETHOD IsProtectedURI(nsIURI *aSourceURI, const mozilla::OriginAttributes & aOriginAttributes, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsProtectedURI(aSourceURI, aOriginAttributes, _retval); }
#endif /* __gen_nsISiteIntegrityService_h__ */