Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsICORSPreflightCacheEntry.idl
*/
#ifndef __gen_nsICORSPreflightCacheEntry_h__
#define __gen_nsICORSPreflightCacheEntry_h__
#include "nsISupports.h"
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */
class nsIPrincipal; /* forward declaration */
/* starting interface: nsICORSPreflightCacheEntry */
#define NS_ICORSPREFLIGHTCACHEENTRY_IID_STR "f43f2098-53dc-4554-b706-040b4ce1e587"
#define NS_ICORSPREFLIGHTCACHEENTRY_IID \
{0xf43f2098, 0x53dc, 0x4554, \
{ 0xb7, 0x06, 0x04, 0x0b, 0x4c, 0xe1, 0xe5, 0x87 }}
class NS_NO_VTABLE nsICORSPreflightCacheEntry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICORSPREFLIGHTCACHEENTRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICORSPreflightCacheEntry;
/* readonly attribute ACString key; */
NS_IMETHOD GetKey(nsACString& aKey) = 0;
/* readonly attribute nsIURI URI; */
NS_IMETHOD GetURI(nsIURI **aURI) = 0;
/* [implicit_jscontext] readonly attribute jsval originAttributes; */
NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) = 0;
/* [binaryname(OriginAttributesRef),noscript,nostdcall,notxpcom] const_OriginAttributes OriginAttributesRef (); */
virtual const mozilla::OriginAttributes & OriginAttributesRef(void) = 0;
/* readonly attribute nsIPrincipal principal; */
NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) = 0;
/* readonly attribute boolean privateBrowsing; */
NS_IMETHOD GetPrivateBrowsing(bool *aPrivateBrowsing) = 0;
/* readonly attribute boolean withCredentials; */
NS_IMETHOD GetWithCredentials(bool *aWithCredentials) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICORSPreflightCacheEntry, NS_ICORSPREFLIGHTCACHEENTRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICORSPREFLIGHTCACHEENTRY \
NS_IMETHOD GetKey(nsACString& aKey) override; \
NS_IMETHOD GetURI(nsIURI **aURI) override; \
NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override; \
virtual const mozilla::OriginAttributes & OriginAttributesRef(void) override; \
NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override; \
NS_IMETHOD GetPrivateBrowsing(bool *aPrivateBrowsing) override; \
NS_IMETHOD GetWithCredentials(bool *aWithCredentials) 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_NSICORSPREFLIGHTCACHEENTRY \
nsresult GetKey(nsACString& aKey); \
nsresult GetURI(nsIURI **aURI); \
nsresult GetOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes); \
const mozilla::OriginAttributes & OriginAttributesRef(void); \
nsresult GetPrincipal(nsIPrincipal **aPrincipal); \
nsresult GetPrivateBrowsing(bool *aPrivateBrowsing); \
nsresult GetWithCredentials(bool *aWithCredentials);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICORSPREFLIGHTCACHEENTRY(_to) \
NS_IMETHOD GetKey(nsACString& aKey) override { return _to GetKey(aKey); } \
NS_IMETHOD GetURI(nsIURI **aURI) override { return _to GetURI(aURI); } \
NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override { return _to GetOriginAttributes(cx, aOriginAttributes); } \
virtual const mozilla::OriginAttributes & OriginAttributesRef(void) override { return _to OriginAttributesRef(); } \
NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
NS_IMETHOD GetPrivateBrowsing(bool *aPrivateBrowsing) override { return _to GetPrivateBrowsing(aPrivateBrowsing); } \
NS_IMETHOD GetWithCredentials(bool *aWithCredentials) override { return _to GetWithCredentials(aWithCredentials); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICORSPREFLIGHTCACHEENTRY(_to) \
NS_IMETHOD GetKey(nsACString& aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
NS_IMETHOD GetURI(nsIURI **aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandle<JS::Value> aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(cx, aOriginAttributes); } \
virtual const mozilla::OriginAttributes & OriginAttributesRef(void) override; \
NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
NS_IMETHOD GetPrivateBrowsing(bool *aPrivateBrowsing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrivateBrowsing(aPrivateBrowsing); } \
NS_IMETHOD GetWithCredentials(bool *aWithCredentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWithCredentials(aWithCredentials); }
#endif /* __gen_nsICORSPreflightCacheEntry_h__ */