Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsICORSPreflightCache.idl
*/
#ifndef __gen_nsICORSPreflightCache_h__
#define __gen_nsICORSPreflightCache_h__
#include "nsISupports.h"
#include "nsIURI.h"
#include "nsIPrincipal.h"
#include "nsICORSPreflightCacheEntry.h"
#include "nsTArray.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsICORSPreflightCache */
#define NS_ICORSPREFLIGHTCACHE_IID_STR "89781b3e-5cd5-4b63-a549-8d9ec3013505"
#define NS_ICORSPREFLIGHTCACHE_IID \
{0x89781b3e, 0x5cd5, 0x4b63, \
{ 0xa5, 0x49, 0x8d, 0x9e, 0xc3, 0x01, 0x35, 0x05 }}
class NS_NO_VTABLE nsICORSPreflightCache : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICORSPREFLIGHTCACHE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICORSPreflightCache;
/* Array<nsICORSPreflightCacheEntry> getEntries (in nsIPrincipal principal); */
NS_IMETHOD GetEntries(nsIPrincipal *principal, nsTArray<RefPtr<nsICORSPreflightCacheEntry>>& _retval) = 0;
/* void clearEntry (in nsICORSPreflightCacheEntry entry); */
NS_IMETHOD ClearEntry(nsICORSPreflightCacheEntry *entry) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICORSPreflightCache, NS_ICORSPREFLIGHTCACHE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICORSPREFLIGHTCACHE \
NS_IMETHOD GetEntries(nsIPrincipal *principal, nsTArray<RefPtr<nsICORSPreflightCacheEntry>>& _retval) override; \
NS_IMETHOD ClearEntry(nsICORSPreflightCacheEntry *entry) 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_NSICORSPREFLIGHTCACHE \
nsresult GetEntries(nsIPrincipal *principal, nsTArray<RefPtr<nsICORSPreflightCacheEntry>>& _retval); \
nsresult ClearEntry(nsICORSPreflightCacheEntry *entry);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICORSPREFLIGHTCACHE(_to) \
NS_IMETHOD GetEntries(nsIPrincipal *principal, nsTArray<RefPtr<nsICORSPreflightCacheEntry>>& _retval) override { return _to GetEntries(principal, _retval); } \
NS_IMETHOD ClearEntry(nsICORSPreflightCacheEntry *entry) override { return _to ClearEntry(entry); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICORSPREFLIGHTCACHE(_to) \
NS_IMETHOD GetEntries(nsIPrincipal *principal, nsTArray<RefPtr<nsICORSPreflightCacheEntry>>& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntries(principal, _retval); } \
NS_IMETHOD ClearEntry(nsICORSPreflightCacheEntry *entry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearEntry(entry); }
#endif /* __gen_nsICORSPreflightCache_h__ */