Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsISSLTokensCache.idl
*/
#ifndef __gen_nsISSLTokensCache_h__
#define __gen_nsISSLTokensCache_h__
#include "nsISupports.h"
#include "js/Value.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: nsISSLTokensCache */
#define NS_ISSLTOKENSCACHE_IID_STR "2c9c9a2c-9c1a-4b6a-9c1e-6f8b0a4b8b1a"
#define NS_ISSLTOKENSCACHE_IID \
{0x2c9c9a2c, 0x9c1a, 0x4b6a, \
{ 0x9c, 0x1e, 0x6f, 0x8b, 0x0a, 0x4b, 0x8b, 0x1a }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISSLTokensCache) nsISSLTokensCache : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ISSLTOKENSCACHE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISSLTokensCache;
/* void clearSSLExternalAndInternalSessionCache (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_clearSSLExternalAndInternalSessionCache)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearSSLExternalAndInternalSessionCache(void) = 0;
/* [implicit_jscontext] Promise asyncClearSSLExternalAndInternalSessionCache (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_asyncClearSSLExternalAndInternalSessionCache)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncClearSSLExternalAndInternalSessionCache(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* void removeSSLTokensByHostAndOriginAttributesPattern (in ACString aHost, in AString aPattern); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_removeSSLTokensByHostAndOriginAttributesPattern)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveSSLTokensByHostAndOriginAttributesPattern(const nsACString& aHost, const nsAString& aPattern) = 0;
/* void removeSSLTokensBySiteAndOriginAttributesPattern (in ACString aSite, in AString aPattern); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_removeSSLTokensBySiteAndOriginAttributesPattern)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveSSLTokensBySiteAndOriginAttributesPattern(const nsACString& aSite, const nsAString& aPattern) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISSLTOKENSCACHE \
NS_IMETHOD ClearSSLExternalAndInternalSessionCache(void) override; \
NS_IMETHOD AsyncClearSSLExternalAndInternalSessionCache(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD RemoveSSLTokensByHostAndOriginAttributesPattern(const nsACString& aHost, const nsAString& aPattern) override; \
NS_IMETHOD RemoveSSLTokensBySiteAndOriginAttributesPattern(const nsACString& aSite, const nsAString& aPattern) 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_NSISSLTOKENSCACHE \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_clearSSLExternalAndInternalSessionCache)\
nsresult ClearSSLExternalAndInternalSessionCache(void); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_asyncClearSSLExternalAndInternalSessionCache)\
nsresult AsyncClearSSLExternalAndInternalSessionCache(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_removeSSLTokensByHostAndOriginAttributesPattern)\
nsresult RemoveSSLTokensByHostAndOriginAttributesPattern(const nsACString& aHost, const nsAString& aPattern); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISSLTokensCache_removeSSLTokensBySiteAndOriginAttributesPattern)\
nsresult RemoveSSLTokensBySiteAndOriginAttributesPattern(const nsACString& aSite, const nsAString& aPattern);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISSLTOKENSCACHE(_to) \
NS_IMETHOD ClearSSLExternalAndInternalSessionCache(void) override { return _to ClearSSLExternalAndInternalSessionCache(); } \
NS_IMETHOD AsyncClearSSLExternalAndInternalSessionCache(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncClearSSLExternalAndInternalSessionCache(cx, _retval); } \
NS_IMETHOD RemoveSSLTokensByHostAndOriginAttributesPattern(const nsACString& aHost, const nsAString& aPattern) override { return _to RemoveSSLTokensByHostAndOriginAttributesPattern(aHost, aPattern); } \
NS_IMETHOD RemoveSSLTokensBySiteAndOriginAttributesPattern(const nsACString& aSite, const nsAString& aPattern) override { return _to RemoveSSLTokensBySiteAndOriginAttributesPattern(aSite, aPattern); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISSLTOKENSCACHE(_to) \
NS_IMETHOD ClearSSLExternalAndInternalSessionCache(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearSSLExternalAndInternalSessionCache(); } \
NS_IMETHOD AsyncClearSSLExternalAndInternalSessionCache(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncClearSSLExternalAndInternalSessionCache(cx, _retval); } \
NS_IMETHOD RemoveSSLTokensByHostAndOriginAttributesPattern(const nsACString& aHost, const nsAString& aPattern) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSSLTokensByHostAndOriginAttributesPattern(aHost, aPattern); } \
NS_IMETHOD RemoveSSLTokensBySiteAndOriginAttributesPattern(const nsACString& aSite, const nsAString& aPattern) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSSLTokensBySiteAndOriginAttributesPattern(aSite, aPattern); }
#endif /* __gen_nsISSLTokensCache_h__ */