Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsIPublicKeyPinningService.idl
*/
#ifndef __gen_nsIPublicKeyPinningService_h__
#define __gen_nsIPublicKeyPinningService_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: nsIPublicKeyPinningService */
#define NS_IPUBLICKEYPINNINGSERVICE_IID_STR "f64432b9-e8c6-41b4-b2da-8eb004344bba"
#define NS_IPUBLICKEYPINNINGSERVICE_IID \
{0xf64432b9, 0xe8c6, 0x41b4, \
{ 0xb2, 0xda, 0x8e, 0xb0, 0x04, 0x34, 0x4b, 0xba }}
class NS_NO_VTABLE nsIPublicKeyPinningService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPUBLICKEYPINNINGSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPublicKeyPinningService;
/* [must_use] boolean hostHasPins (in nsIURI aURI); */
[[nodiscard]] NS_IMETHOD HostHasPins(nsIURI *aURI, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPublicKeyPinningService, NS_IPUBLICKEYPINNINGSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPUBLICKEYPINNINGSERVICE \
[[nodiscard]] NS_IMETHOD HostHasPins(nsIURI *aURI, 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_NSIPUBLICKEYPINNINGSERVICE \
[[nodiscard]] nsresult HostHasPins(nsIURI *aURI, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPUBLICKEYPINNINGSERVICE(_to) \
[[nodiscard]] NS_IMETHOD HostHasPins(nsIURI *aURI, bool *_retval) override { return _to HostHasPins(aURI, _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_NSIPUBLICKEYPINNINGSERVICE(_to) \
[[nodiscard]] NS_IMETHOD HostHasPins(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HostHasPins(aURI, _retval); }
#define NS_PKPSERVICE_CONTRACTID "@mozilla.org/security/publickeypinningservice;1"
#endif /* __gen_nsIPublicKeyPinningService_h__ */