Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsICtapCableChannel.idl
*/
#ifndef __gen_nsICtapCableChannel_h__
#define __gen_nsICtapCableChannel_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsICtapCableChannel */
#define NS_ICTAPCABLECHANNEL_IID_STR "44147a85-3d83-4fa5-b165-bb1f334b1ea4"
#define NS_ICTAPCABLECHANNEL_IID \
{0x44147a85, 0x3d83, 0x4fa5, \
{ 0xb1, 0x65, 0xbb, 0x1f, 0x33, 0x4b, 0x1e, 0xa4 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsICtapCableChannel) nsICtapCableChannel : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICTAPCABLECHANNEL_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICtapCableChannel;
/* readonly attribute boolean hasKeys; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableChannel_hasKeys)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHasKeys(bool *aHasKeys) = 0;
/* void initializeKeys (in Array<octet> aDecryptKey, in Array<octet> aEncryptKey); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_initializeKeys)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitializeKeys(const nsTArray<uint8_t >& aDecryptKey, const nsTArray<uint8_t >& aEncryptKey) = 0;
/* Array<octet> encrypt (in Array<octet> aPlainText); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_encrypt)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Encrypt(const nsTArray<uint8_t >& aPlainText, nsTArray<uint8_t >& _retval) = 0;
/* Array<octet> decrypt (in Array<octet> aCipherText); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_decrypt)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Decrypt(const nsTArray<uint8_t >& aCipherText, nsTArray<uint8_t >& _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICTAPCABLECHANNEL \
NS_IMETHOD GetHasKeys(bool *aHasKeys) override; \
NS_IMETHOD InitializeKeys(const nsTArray<uint8_t >& aDecryptKey, const nsTArray<uint8_t >& aEncryptKey) override; \
NS_IMETHOD Encrypt(const nsTArray<uint8_t >& aPlainText, nsTArray<uint8_t >& _retval) override; \
NS_IMETHOD Decrypt(const nsTArray<uint8_t >& aCipherText, nsTArray<uint8_t >& _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_NSICTAPCABLECHANNEL \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableChannel_hasKeys)\
nsresult GetHasKeys(bool *aHasKeys); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_initializeKeys)\
nsresult InitializeKeys(const nsTArray<uint8_t >& aDecryptKey, const nsTArray<uint8_t >& aEncryptKey); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_encrypt)\
nsresult Encrypt(const nsTArray<uint8_t >& aPlainText, nsTArray<uint8_t >& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsICtapCableChannel_decrypt)\
nsresult Decrypt(const nsTArray<uint8_t >& aCipherText, nsTArray<uint8_t >& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICTAPCABLECHANNEL(_to) \
NS_IMETHOD GetHasKeys(bool *aHasKeys) override { return _to GetHasKeys(aHasKeys); } \
NS_IMETHOD InitializeKeys(const nsTArray<uint8_t >& aDecryptKey, const nsTArray<uint8_t >& aEncryptKey) override { return _to InitializeKeys(aDecryptKey, aEncryptKey); } \
NS_IMETHOD Encrypt(const nsTArray<uint8_t >& aPlainText, nsTArray<uint8_t >& _retval) override { return _to Encrypt(aPlainText, _retval); } \
NS_IMETHOD Decrypt(const nsTArray<uint8_t >& aCipherText, nsTArray<uint8_t >& _retval) override { return _to Decrypt(aCipherText, _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_NSICTAPCABLECHANNEL(_to) \
NS_IMETHOD GetHasKeys(bool *aHasKeys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasKeys(aHasKeys); } \
NS_IMETHOD InitializeKeys(const nsTArray<uint8_t >& aDecryptKey, const nsTArray<uint8_t >& aEncryptKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitializeKeys(aDecryptKey, aEncryptKey); } \
NS_IMETHOD Encrypt(const nsTArray<uint8_t >& aPlainText, nsTArray<uint8_t >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Encrypt(aPlainText, _retval); } \
NS_IMETHOD Decrypt(const nsTArray<uint8_t >& aCipherText, nsTArray<uint8_t >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Decrypt(aCipherText, _retval); }
/* starting interface: nsICtapCableInitiator */
#define NS_ICTAPCABLEINITIATOR_IID_STR "158a8333-a0ae-487b-ae1c-48fab5be8cd9"
#define NS_ICTAPCABLEINITIATOR_IID \
{0x158a8333, 0xa0ae, 0x487b, \
{ 0xae, 0x1c, 0x48, 0xfa, 0xb5, 0xbe, 0x8c, 0xd9 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsICtapCableInitiator) nsICtapCableInitiator : public nsICtapCableChannel {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICTAPCABLEINITIATOR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICtapCableInitiator;
/* readonly attribute Array<octet> handshakeHash; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableInitiator_handshakeHash)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICTAPCABLEINITIATOR \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) 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_NSICTAPCABLEINITIATOR \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableInitiator_handshakeHash)\
nsresult GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICTAPCABLEINITIATOR(_to) \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) override { return _to GetHandshakeHash(aHandshakeHash); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICTAPCABLEINITIATOR(_to) \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHandshakeHash(aHandshakeHash); }
/* starting interface: nsICtapCableResponder */
#define NS_ICTAPCABLERESPONDER_IID_STR "2dbfbc2d-33ac-4573-963e-5cdf3d5a93ba"
#define NS_ICTAPCABLERESPONDER_IID \
{0x2dbfbc2d, 0x33ac, 0x4573, \
{ 0x96, 0x3e, 0x5c, 0xdf, 0x3d, 0x5a, 0x93, 0xba }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsICtapCableResponder) nsICtapCableResponder : public nsICtapCableChannel {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICTAPCABLERESPONDER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICtapCableResponder;
/* readonly attribute Array<octet> handshakeHash; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableResponder_handshakeHash)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) = 0;
/* readonly attribute Array<octet> responseMessage; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableResponder_responseMessage)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetResponseMessage(nsTArray<uint8_t >& aResponseMessage) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICTAPCABLERESPONDER \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) override; \
NS_IMETHOD GetResponseMessage(nsTArray<uint8_t >& aResponseMessage) 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_NSICTAPCABLERESPONDER \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableResponder_handshakeHash)\
nsresult GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsICtapCableResponder_responseMessage)\
nsresult GetResponseMessage(nsTArray<uint8_t >& aResponseMessage);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICTAPCABLERESPONDER(_to) \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) override { return _to GetHandshakeHash(aHandshakeHash); } \
NS_IMETHOD GetResponseMessage(nsTArray<uint8_t >& aResponseMessage) override { return _to GetResponseMessage(aResponseMessage); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICTAPCABLERESPONDER(_to) \
NS_IMETHOD GetHandshakeHash(nsTArray<uint8_t >& aHandshakeHash) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHandshakeHash(aHandshakeHash); } \
NS_IMETHOD GetResponseMessage(nsTArray<uint8_t >& aResponseMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseMessage(aResponseMessage); }
#endif /* __gen_nsICtapCableChannel_h__ */