/* * 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" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIBounceTrackingRecord; /* forward declaration */ /* 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 MOZ_BINDING(binding_to, idl, class, XPIDL_nsIBounceTrackingMapEntry) nsIBounceTrackingMapEntry : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IBOUNCETRACKINGMAPENTRY_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIBounceTrackingMapEntry; /* readonly attribute ACString siteHost; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingMapEntry_siteHost) NS_IMETHOD GetSiteHost(nsACString& aSiteHost) = 0; /* readonly attribute PRTime timeStamp; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingMapEntry_timeStamp) NS_IMETHOD GetTimeStamp(PRTime *aTimeStamp) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIBOUNCETRACKINGMAPENTRY \ NS_IMETHOD GetSiteHost(nsACString& aSiteHost) override; \ NS_IMETHOD GetTimeStamp(PRTime *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 \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingMapEntry_siteHost)\ nsresult GetSiteHost(nsACString& aSiteHost); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingMapEntry_timeStamp)\ nsresult GetTimeStamp(PRTime *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(PRTime *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(PRTime *aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); } /* starting interface: nsIBounceTrackingPurgeEntry */ #define NS_IBOUNCETRACKINGPURGEENTRY_IID_STR "dfed8adb-c15c-4e87-ac11-7101ab8bc7dd" #define NS_IBOUNCETRACKINGPURGEENTRY_IID \ {0xdfed8adb, 0xc15c, 0x4e87, \ { 0xac, 0x11, 0x71, 0x01, 0xab, 0x8b, 0xc7, 0xdd }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIBounceTrackingPurgeEntry) nsIBounceTrackingPurgeEntry : public nsIBounceTrackingMapEntry { public: NS_INLINE_DECL_STATIC_IID(NS_IBOUNCETRACKINGPURGEENTRY_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIBounceTrackingPurgeEntry; /* readonly attribute PRTime purgeTime; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingPurgeEntry_purgeTime) NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) = 0; /* readonly attribute nsIBounceTrackingRecord bounceTrackingRecord; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingPurgeEntry_bounceTrackingRecord) NS_IMETHOD GetBounceTrackingRecord(nsIBounceTrackingRecord **aBounceTrackingRecord) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIBOUNCETRACKINGPURGEENTRY \ NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) override; \ NS_IMETHOD GetBounceTrackingRecord(nsIBounceTrackingRecord **aBounceTrackingRecord) 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_NSIBOUNCETRACKINGPURGEENTRY \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingPurgeEntry_purgeTime)\ nsresult GetPurgeTime(PRTime *aPurgeTime); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIBounceTrackingPurgeEntry_bounceTrackingRecord)\ nsresult GetBounceTrackingRecord(nsIBounceTrackingRecord **aBounceTrackingRecord); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIBOUNCETRACKINGPURGEENTRY(_to) \ NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) override { return _to GetPurgeTime(aPurgeTime); } \ NS_IMETHOD GetBounceTrackingRecord(nsIBounceTrackingRecord **aBounceTrackingRecord) override { return _to GetBounceTrackingRecord(aBounceTrackingRecord); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIBOUNCETRACKINGPURGEENTRY(_to) \ NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPurgeTime(aPurgeTime); } \ NS_IMETHOD GetBounceTrackingRecord(nsIBounceTrackingRecord **aBounceTrackingRecord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBounceTrackingRecord(aBounceTrackingRecord); } #endif /* __gen_nsIBounceTrackingMapEntry_h__ */