Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/security/manager/ssl/nsISSLTokensCacheTest.idl
*/
#ifndef __gen_nsISSLTokensCacheTest_h__
#define __gen_nsISSLTokensCacheTest_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: nsISSLTokensCacheTest */
#define NS_ISSLTOKENSCACHETEST_IID_STR "7b3c4e2a-1d8f-4a5b-9c6d-2e0f1a3b5c7d"
#define NS_ISSLTOKENSCACHETEST_IID \
{0x7b3c4e2a, 0x1d8f, 0x4a5b, \
{ 0x9c, 0x6d, 0x2e, 0x0f, 0x1a, 0x3b, 0x5c, 0x7d }}
class NS_NO_VTABLE nsISSLTokensCacheTest : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ISSLTOKENSCACHETEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISSLTokensCacheTest;
/* uint32_t countSSLTokens (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CountSSLTokens(uint32_t *_retval) = 0;
/* void putSSLTokenForTest (in ACString aKey); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PutSSLTokenForTest(const nsACString& aKey) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISSLTOKENSCACHETEST \
NS_IMETHOD CountSSLTokens(uint32_t *_retval) override; \
NS_IMETHOD PutSSLTokenForTest(const nsACString& aKey) 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_NSISSLTOKENSCACHETEST \
nsresult CountSSLTokens(uint32_t *_retval); \
nsresult PutSSLTokenForTest(const nsACString& aKey);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISSLTOKENSCACHETEST(_to) \
NS_IMETHOD CountSSLTokens(uint32_t *_retval) override { return _to CountSSLTokens(_retval); } \
NS_IMETHOD PutSSLTokenForTest(const nsACString& aKey) override { return _to PutSSLTokenForTest(aKey); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISSLTOKENSCACHETEST(_to) \
NS_IMETHOD CountSSLTokens(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CountSSLTokens(_retval); } \
NS_IMETHOD PutSSLTokenForTest(const nsACString& aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PutSSLTokenForTest(aKey); }
#endif /* __gen_nsISSLTokensCacheTest_h__ */