Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/glean/xpcom/nsIGleanPing.idl
*/
#ifndef __gen_nsIGleanPing_h__
#define __gen_nsIGleanPing_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: nsIGleanPingTestCallback */
#define NS_IGLEANPINGTESTCALLBACK_IID_STR "e5447f62-4b03-497c-81e9-6ab683d20380"
#define NS_IGLEANPINGTESTCALLBACK_IID \
{0xe5447f62, 0x4b03, 0x497c, \
{ 0x81, 0xe9, 0x6a, 0xb6, 0x83, 0xd2, 0x03, 0x80 }}
class NS_NO_VTABLE nsIGleanPingTestCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLEANPINGTESTCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGleanPingTestCallback;
/* void call (in ACString aReason); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Call(const nsACString& aReason) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGleanPingTestCallback, NS_IGLEANPINGTESTCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGLEANPINGTESTCALLBACK \
NS_IMETHOD Call(const nsACString& aReason) 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_NSIGLEANPINGTESTCALLBACK \
nsresult Call(const nsACString& aReason);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGLEANPINGTESTCALLBACK(_to) \
NS_IMETHOD Call(const nsACString& aReason) override { return _to Call(aReason); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGLEANPINGTESTCALLBACK(_to) \
NS_IMETHOD Call(const nsACString& aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Call(aReason); }
/* starting interface: nsIGleanPing */
#define NS_IGLEANPING_IID_STR "5223a48b-687d-47ff-a629-fd4a72d1ecfa"
#define NS_IGLEANPING_IID \
{0x5223a48b, 0x687d, 0x47ff, \
{ 0xa6, 0x29, 0xfd, 0x4a, 0x72, 0xd1, 0xec, 0xfa }}
class NS_NO_VTABLE nsIGleanPing : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLEANPING_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGleanPing;
/* void submit ([optional] in ACString aReason); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Submit(const nsACString& aReason) = 0;
/* void testBeforeNextSubmit (in nsIGleanPingTestCallback aCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestBeforeNextSubmit(nsIGleanPingTestCallback *aCallback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGleanPing, NS_IGLEANPING_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGLEANPING \
NS_IMETHOD Submit(const nsACString& aReason) override; \
NS_IMETHOD TestBeforeNextSubmit(nsIGleanPingTestCallback *aCallback) 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_NSIGLEANPING \
nsresult Submit(const nsACString& aReason); \
nsresult TestBeforeNextSubmit(nsIGleanPingTestCallback *aCallback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGLEANPING(_to) \
NS_IMETHOD Submit(const nsACString& aReason) override { return _to Submit(aReason); } \
NS_IMETHOD TestBeforeNextSubmit(nsIGleanPingTestCallback *aCallback) override { return _to TestBeforeNextSubmit(aCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGLEANPING(_to) \
NS_IMETHOD Submit(const nsACString& aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Submit(aReason); } \
NS_IMETHOD TestBeforeNextSubmit(nsIGleanPingTestCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestBeforeNextSubmit(aCallback); }
#endif /* __gen_nsIGleanPing_h__ */