Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIEarlyHintObserver.idl
*/
#ifndef __gen_nsIEarlyHintObserver_h__
#define __gen_nsIEarlyHintObserver_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: nsIEarlyHintObserver */
#define NS_IEARLYHINTOBSERVER_IID_STR "97b6be6f-283c-45dd-81a7-4bb2d87d42f8"
#define NS_IEARLYHINTOBSERVER_IID \
{0x97b6be6f, 0x283c, 0x45dd, \
{ 0x81, 0xa7, 0x4b, 0xb2, 0xd8, 0x7d, 0x42, 0xf8 }}
class NS_NO_VTABLE nsIEarlyHintObserver : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEARLYHINTOBSERVER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIEarlyHintObserver;
/* void earlyHint (in ACString linkHeader, in ACString referrerPolicy, in ACString cspHeader); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EarlyHint(const nsACString& linkHeader, const nsACString& referrerPolicy, const nsACString& cspHeader) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIEarlyHintObserver, NS_IEARLYHINTOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEARLYHINTOBSERVER \
NS_IMETHOD EarlyHint(const nsACString& linkHeader, const nsACString& referrerPolicy, const nsACString& cspHeader) 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_NSIEARLYHINTOBSERVER \
nsresult EarlyHint(const nsACString& linkHeader, const nsACString& referrerPolicy, const nsACString& cspHeader);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEARLYHINTOBSERVER(_to) \
NS_IMETHOD EarlyHint(const nsACString& linkHeader, const nsACString& referrerPolicy, const nsACString& cspHeader) override { return _to EarlyHint(linkHeader, referrerPolicy, cspHeader); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEARLYHINTOBSERVER(_to) \
NS_IMETHOD EarlyHint(const nsACString& linkHeader, const nsACString& referrerPolicy, const nsACString& cspHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EarlyHint(linkHeader, referrerPolicy, cspHeader); }
#endif /* __gen_nsIEarlyHintObserver_h__ */