Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsITlsHandshakeListener.idl
*/
#ifndef __gen_nsITlsHandshakeListener_h__
#define __gen_nsITlsHandshakeListener_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: nsITlsHandshakeCallbackListener */
#define NS_ITLSHANDSHAKECALLBACKLISTENER_IID_STR "b4bbe824-ec4c-48be-9a40-6a7339347f40"
#define NS_ITLSHANDSHAKECALLBACKLISTENER_IID \
{0xb4bbe824, 0xec4c, 0x48be, \
{ 0x9a, 0x40, 0x6a, 0x73, 0x39, 0x34, 0x7f, 0x40 }}
class NS_NO_VTABLE nsITlsHandshakeCallbackListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITLSHANDSHAKECALLBACKLISTENER_IID)
/* [noscript] void handshakeDone (); */
NS_IMETHOD HandshakeDone(void) = 0;
/* [noscript] void certVerificationDone (); */
NS_IMETHOD CertVerificationDone(void) = 0;
/* [noscript] void clientAuthCertificateSelected (); */
NS_IMETHOD ClientAuthCertificateSelected(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITlsHandshakeCallbackListener, NS_ITLSHANDSHAKECALLBACKLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITLSHANDSHAKECALLBACKLISTENER \
NS_IMETHOD HandshakeDone(void) override; \
NS_IMETHOD CertVerificationDone(void) override; \
NS_IMETHOD ClientAuthCertificateSelected(void) 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_NSITLSHANDSHAKECALLBACKLISTENER \
nsresult HandshakeDone(void); \
nsresult CertVerificationDone(void); \
nsresult ClientAuthCertificateSelected(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITLSHANDSHAKECALLBACKLISTENER(_to) \
NS_IMETHOD HandshakeDone(void) override { return _to HandshakeDone(); } \
NS_IMETHOD CertVerificationDone(void) override { return _to CertVerificationDone(); } \
NS_IMETHOD ClientAuthCertificateSelected(void) override { return _to ClientAuthCertificateSelected(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITLSHANDSHAKECALLBACKLISTENER(_to) \
NS_IMETHOD HandshakeDone(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandshakeDone(); } \
NS_IMETHOD CertVerificationDone(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CertVerificationDone(); } \
NS_IMETHOD ClientAuthCertificateSelected(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClientAuthCertificateSelected(); }
#endif /* __gen_nsITlsHandshakeListener_h__ */