Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/url-classifier/nsIUrlClassifierTestUtils.idl
*/
#ifndef __gen_nsIUrlClassifierTestUtils_h__
#define __gen_nsIUrlClassifierTestUtils_h__
#include "nsISupports.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: nsIUrlClassifierTestUtils */
#define NS_IURLCLASSIFIERTESTUTILS_IID_STR "d63d6302-05fe-4b0e-aff9-f6b118f91ada"
#define NS_IURLCLASSIFIERTESTUTILS_IID \
{0xd63d6302, 0x05fe, 0x4b0e, \
{ 0xaf, 0xf9, 0xf6, 0xb1, 0x18, 0xf9, 0x1a, 0xda }}
class NS_NO_VTABLE nsIUrlClassifierTestUtils : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IURLCLASSIFIERTESTUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUrlClassifierTestUtils;
/* ACString makeUpdateResponseV5 (in ACString aName, in uint32_t aSingleHash); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MakeUpdateResponseV5(const nsACString& aName, uint32_t aSingleHash, nsACString& _retval) = 0;
/* ACString makeFindFullHashResponseV5 (in ACString aFullHash); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MakeFindFullHashResponseV5(const nsACString& aFullHash, nsACString& _retval) = 0;
/* uint32_t generateLookupHash (in ACString aFragment); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GenerateLookupHash(const nsACString& aFragment, uint32_t *_retval) = 0;
/* ACString generateFullHash (in ACString aFragment); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GenerateFullHash(const nsACString& aFragment, nsACString& _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLCLASSIFIERTESTUTILS \
NS_IMETHOD MakeUpdateResponseV5(const nsACString& aName, uint32_t aSingleHash, nsACString& _retval) override; \
NS_IMETHOD MakeFindFullHashResponseV5(const nsACString& aFullHash, nsACString& _retval) override; \
NS_IMETHOD GenerateLookupHash(const nsACString& aFragment, uint32_t *_retval) override; \
NS_IMETHOD GenerateFullHash(const nsACString& aFragment, nsACString& _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_NSIURLCLASSIFIERTESTUTILS \
nsresult MakeUpdateResponseV5(const nsACString& aName, uint32_t aSingleHash, nsACString& _retval); \
nsresult MakeFindFullHashResponseV5(const nsACString& aFullHash, nsACString& _retval); \
nsresult GenerateLookupHash(const nsACString& aFragment, uint32_t *_retval); \
nsresult GenerateFullHash(const nsACString& aFragment, nsACString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLCLASSIFIERTESTUTILS(_to) \
NS_IMETHOD MakeUpdateResponseV5(const nsACString& aName, uint32_t aSingleHash, nsACString& _retval) override { return _to MakeUpdateResponseV5(aName, aSingleHash, _retval); } \
NS_IMETHOD MakeFindFullHashResponseV5(const nsACString& aFullHash, nsACString& _retval) override { return _to MakeFindFullHashResponseV5(aFullHash, _retval); } \
NS_IMETHOD GenerateLookupHash(const nsACString& aFragment, uint32_t *_retval) override { return _to GenerateLookupHash(aFragment, _retval); } \
NS_IMETHOD GenerateFullHash(const nsACString& aFragment, nsACString& _retval) override { return _to GenerateFullHash(aFragment, _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_NSIURLCLASSIFIERTESTUTILS(_to) \
NS_IMETHOD MakeUpdateResponseV5(const nsACString& aName, uint32_t aSingleHash, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeUpdateResponseV5(aName, aSingleHash, _retval); } \
NS_IMETHOD MakeFindFullHashResponseV5(const nsACString& aFullHash, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeFindFullHashResponseV5(aFullHash, _retval); } \
NS_IMETHOD GenerateLookupHash(const nsACString& aFragment, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateLookupHash(aFragment, _retval); } \
NS_IMETHOD GenerateFullHash(const nsACString& aFragment, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateFullHash(aFragment, _retval); }
#endif /* __gen_nsIUrlClassifierTestUtils_h__ */