Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/bouncetrackingprotection/nsIBounceTrackingMapEntry.idl
*/
#ifndef __gen_nsIBounceTrackingMapEntry_h__
#define __gen_nsIBounceTrackingMapEntry_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: nsIBounceTrackingMapEntry */
#define NS_IBOUNCETRACKINGMAPENTRY_IID_STR "51b0b5ae-0ac2-4a3c-8c7e-3523fa42881b"
#define NS_IBOUNCETRACKINGMAPENTRY_IID \
{0x51b0b5ae, 0x0ac2, 0x4a3c, \
{ 0x8c, 0x7e, 0x35, 0x23, 0xfa, 0x42, 0x88, 0x1b }}
class NS_NO_VTABLE nsIBounceTrackingMapEntry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBOUNCETRACKINGMAPENTRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBounceTrackingMapEntry;
/* readonly attribute ACString siteHost; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSiteHost(nsACString& aSiteHost) = 0;
/* readonly attribute int64_t timeStamp; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeStamp(int64_t *aTimeStamp) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBounceTrackingMapEntry, NS_IBOUNCETRACKINGMAPENTRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBOUNCETRACKINGMAPENTRY \
NS_IMETHOD GetSiteHost(nsACString& aSiteHost) override; \
NS_IMETHOD GetTimeStamp(int64_t *aTimeStamp) 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_NSIBOUNCETRACKINGMAPENTRY \
nsresult GetSiteHost(nsACString& aSiteHost); \
nsresult GetTimeStamp(int64_t *aTimeStamp);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBOUNCETRACKINGMAPENTRY(_to) \
NS_IMETHOD GetSiteHost(nsACString& aSiteHost) override { return _to GetSiteHost(aSiteHost); } \
NS_IMETHOD GetTimeStamp(int64_t *aTimeStamp) override { return _to GetTimeStamp(aTimeStamp); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBOUNCETRACKINGMAPENTRY(_to) \
NS_IMETHOD GetSiteHost(nsACString& aSiteHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSiteHost(aSiteHost); } \
NS_IMETHOD GetTimeStamp(int64_t *aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); }
#endif /* __gen_nsIBounceTrackingMapEntry_h__ */