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"
/* 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; */
NS_IMETHOD GetSiteHost(nsACString& aSiteHost) = 0;
/* readonly attribute PRTime timeStamp; */
NS_IMETHOD GetTimeStamp(PRTime *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(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 \
nsresult GetSiteHost(nsACString& aSiteHost); \
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 nsIBounceTrackingPurgeEntry : public nsIBounceTrackingMapEntry {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBOUNCETRACKINGPURGEENTRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBounceTrackingPurgeEntry;
/* readonly attribute PRTime purgeTime; */
NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBounceTrackingPurgeEntry, NS_IBOUNCETRACKINGPURGEENTRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBOUNCETRACKINGPURGEENTRY \
NS_IMETHOD GetPurgeTime(PRTime *aPurgeTime) 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 \
nsresult GetPurgeTime(PRTime *aPurgeTime);
/* 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); }
/* 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); }
#endif /* __gen_nsIBounceTrackingMapEntry_h__ */