Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsINetworkErrorLogging.idl
*/
#ifndef __gen_nsINetworkErrorLogging_h__
#define __gen_nsINetworkErrorLogging_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
class nsIHttpChannel; /* forward declaration */
/* starting interface: nsINetworkErrorLogging */
#define NS_INETWORKERRORLOGGING_IID_STR "391ba410-0a68-42f7-b3e4-3ec26db645c0"
#define NS_INETWORKERRORLOGGING_IID \
{0x391ba410, 0x0a68, 0x42f7, \
{ 0xb3, 0xe4, 0x3e, 0xc2, 0x6d, 0xb6, 0x45, 0xc0 }}
class NS_NO_VTABLE nsINetworkErrorLogging : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETWORKERRORLOGGING_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsINetworkErrorLogging;
/* void registerPolicy (in nsIHttpChannel aChannel); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterPolicy(nsIHttpChannel *aChannel) = 0;
/* void generateNELReport (in nsIHttpChannel aChannel); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GenerateNELReport(nsIHttpChannel *aChannel) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsINetworkErrorLogging, NS_INETWORKERRORLOGGING_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINETWORKERRORLOGGING \
NS_IMETHOD RegisterPolicy(nsIHttpChannel *aChannel) override; \
NS_IMETHOD GenerateNELReport(nsIHttpChannel *aChannel) 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_NSINETWORKERRORLOGGING \
nsresult RegisterPolicy(nsIHttpChannel *aChannel); \
nsresult GenerateNELReport(nsIHttpChannel *aChannel);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINETWORKERRORLOGGING(_to) \
NS_IMETHOD RegisterPolicy(nsIHttpChannel *aChannel) override { return _to RegisterPolicy(aChannel); } \
NS_IMETHOD GenerateNELReport(nsIHttpChannel *aChannel) override { return _to GenerateNELReport(aChannel); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINETWORKERRORLOGGING(_to) \
NS_IMETHOD RegisterPolicy(nsIHttpChannel *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterPolicy(aChannel); } \
NS_IMETHOD GenerateNELReport(nsIHttpChannel *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GenerateNELReport(aChannel); }
#endif /* __gen_nsINetworkErrorLogging_h__ */