/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/http-sfv/nsIStructuredFieldValues.idl */ #ifndef __gen_nsIStructuredFieldValues_h__ #define __gen_nsIStructuredFieldValues_h__ #include "nsISupports.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: nsISFVBareItem */ #define NS_ISFVBAREITEM_IID_STR "7072853f-215b-4a8a-92e5-9732bccc377b" #define NS_ISFVBAREITEM_IID \ {0x7072853f, 0x215b, 0x4a8a, \ { 0x92, 0xe5, 0x97, 0x32, 0xbc, 0xcc, 0x37, 0x7b }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVBareItem) nsISFVBareItem : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVBAREITEM_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVBareItem; enum { BOOL MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_BOOL) = 1, STRING MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_STRING) = 2, DECIMAL MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_DECIMAL) = 3, INTEGER MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_INTEGER) = 4, TOKEN MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_TOKEN) = 5, BYTE_SEQUENCE MOZ_BINDING(binding_to, idl, const, XPIDL_nsISFVBareItem_BYTE_SEQUENCE) = 6 }; /* readonly attribute long type; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVBareItem_type) NS_IMETHOD GetType(int32_t *aType) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVBAREITEM \ NS_IMETHOD GetType(int32_t *aType) 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_NSISFVBAREITEM \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVBareItem_type)\ nsresult GetType(int32_t *aType); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVBAREITEM(_to) \ NS_IMETHOD GetType(int32_t *aType) override { return _to GetType(aType); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVBAREITEM(_to) \ NS_IMETHOD GetType(int32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } /* starting interface: nsISFVInteger */ #define NS_ISFVINTEGER_IID_STR "843eea44-990a-422c-bbf2-2aa4ba9ee4d2" #define NS_ISFVINTEGER_IID \ {0x843eea44, 0x990a, 0x422c, \ { 0xbb, 0xf2, 0x2a, 0xa4, 0xba, 0x9e, 0xe4, 0xd2 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVInteger) nsISFVInteger : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVINTEGER_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVInteger; /* attribute long long value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVInteger_value) NS_IMETHOD GetValue(int64_t *aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVInteger_value) NS_IMETHOD SetValue(int64_t aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVINTEGER \ NS_IMETHOD GetValue(int64_t *aValue) override; \ NS_IMETHOD SetValue(int64_t aValue) 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_NSISFVINTEGER \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVInteger_value)\ nsresult GetValue(int64_t *aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVInteger_value)\ nsresult SetValue(int64_t aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVINTEGER(_to) \ NS_IMETHOD GetValue(int64_t *aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(int64_t aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVINTEGER(_to) \ NS_IMETHOD GetValue(int64_t *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(int64_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVString */ #define NS_ISFVSTRING_IID_STR "df6a0787-7caa-4fef-b145-08c1104c2fde" #define NS_ISFVSTRING_IID \ {0xdf6a0787, 0x7caa, 0x4fef, \ { 0xb1, 0x45, 0x08, 0xc1, 0x10, 0x4c, 0x2f, 0xde }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVString) nsISFVString : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVSTRING_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVString; /* attribute ACString value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVString_value) NS_IMETHOD GetValue(nsACString& aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVString_value) NS_IMETHOD SetValue(const nsACString& aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVSTRING \ NS_IMETHOD GetValue(nsACString& aValue) override; \ NS_IMETHOD SetValue(const nsACString& aValue) 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_NSISFVSTRING \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVString_value)\ nsresult GetValue(nsACString& aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVString_value)\ nsresult SetValue(const nsACString& aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVSTRING(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVSTRING(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVBool */ #define NS_ISFVBOOL_IID_STR "d263c6d7-4123-4c39-a121-ccf874a19012" #define NS_ISFVBOOL_IID \ {0xd263c6d7, 0x4123, 0x4c39, \ { 0xa1, 0x21, 0xcc, 0xf8, 0x74, 0xa1, 0x90, 0x12 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVBool) nsISFVBool : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVBOOL_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVBool; /* attribute boolean value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVBool_value) NS_IMETHOD GetValue(bool *aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVBool_value) NS_IMETHOD SetValue(bool aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVBOOL \ NS_IMETHOD GetValue(bool *aValue) override; \ NS_IMETHOD SetValue(bool aValue) 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_NSISFVBOOL \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVBool_value)\ nsresult GetValue(bool *aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVBool_value)\ nsresult SetValue(bool aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVBOOL(_to) \ NS_IMETHOD GetValue(bool *aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(bool aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVBOOL(_to) \ NS_IMETHOD GetValue(bool *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(bool aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVDecimal */ #define NS_ISFVDECIMAL_IID_STR "1098da8b-b4df-4526-b985-53dbd4160ad2" #define NS_ISFVDECIMAL_IID \ {0x1098da8b, 0xb4df, 0x4526, \ { 0xb9, 0x85, 0x53, 0xdb, 0xd4, 0x16, 0x0a, 0xd2 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVDecimal) nsISFVDecimal : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVDECIMAL_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVDecimal; /* attribute double value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVDecimal_value) NS_IMETHOD GetValue(double *aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVDecimal_value) NS_IMETHOD SetValue(double aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVDECIMAL \ NS_IMETHOD GetValue(double *aValue) override; \ NS_IMETHOD SetValue(double aValue) 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_NSISFVDECIMAL \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVDecimal_value)\ nsresult GetValue(double *aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVDecimal_value)\ nsresult SetValue(double aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVDECIMAL(_to) \ NS_IMETHOD GetValue(double *aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(double aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVDECIMAL(_to) \ NS_IMETHOD GetValue(double *aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(double aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVToken */ #define NS_ISFVTOKEN_IID_STR "8ad33d52-b9b2-4a17-8aa8-991250fc1214" #define NS_ISFVTOKEN_IID \ {0x8ad33d52, 0xb9b2, 0x4a17, \ { 0x8a, 0xa8, 0x99, 0x12, 0x50, 0xfc, 0x12, 0x14 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVToken) nsISFVToken : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVTOKEN_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVToken; /* attribute ACString value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVToken_value) NS_IMETHOD GetValue(nsACString& aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVToken_value) NS_IMETHOD SetValue(const nsACString& aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVTOKEN \ NS_IMETHOD GetValue(nsACString& aValue) override; \ NS_IMETHOD SetValue(const nsACString& aValue) 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_NSISFVTOKEN \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVToken_value)\ nsresult GetValue(nsACString& aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVToken_value)\ nsresult SetValue(const nsACString& aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVTOKEN(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVTOKEN(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVByteSeq */ #define NS_ISFVBYTESEQ_IID_STR "887eaef0-19fe-42bc-9a42-9ff773aa8fea" #define NS_ISFVBYTESEQ_IID \ {0x887eaef0, 0x19fe, 0x42bc, \ { 0x9a, 0x42, 0x9f, 0xf7, 0x73, 0xaa, 0x8f, 0xea }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVByteSeq) nsISFVByteSeq : public nsISFVBareItem { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVBYTESEQ_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVByteSeq; /* attribute ACString value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVByteSeq_value) NS_IMETHOD GetValue(nsACString& aValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVByteSeq_value) NS_IMETHOD SetValue(const nsACString& aValue) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVBYTESEQ \ NS_IMETHOD GetValue(nsACString& aValue) override; \ NS_IMETHOD SetValue(const nsACString& aValue) 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_NSISFVBYTESEQ \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVByteSeq_value)\ nsresult GetValue(nsACString& aValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVByteSeq_value)\ nsresult SetValue(const nsACString& aValue); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVBYTESEQ(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return _to SetValue(aValue); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVBYTESEQ(_to) \ NS_IMETHOD GetValue(nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD SetValue(const nsACString& aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } /* starting interface: nsISFVParams */ #define NS_ISFVPARAMS_IID_STR "b1a397d7-3333-43e7-993a-fbe8ab90ee96" #define NS_ISFVPARAMS_IID \ {0xb1a397d7, 0x3333, 0x43e7, \ { 0x99, 0x3a, 0xfb, 0xe8, 0xab, 0x90, 0xee, 0x96 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVParams) nsISFVParams : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVPARAMS_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVParams; /* nsISFVBareItem get (in ACString key); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_get) NS_IMETHOD Get(const nsACString& key, nsISFVBareItem **_retval) = 0; /* void set (in ACString key, in nsISFVBareItem item); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_set) NS_IMETHOD Set(const nsACString& key, nsISFVBareItem *item) = 0; /* void delete (in ACString key); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_delete) NS_IMETHOD Delete(const nsACString& key) = 0; /* Array keys (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_keys) NS_IMETHOD Keys(nsTArray& _retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVPARAMS \ NS_IMETHOD Get(const nsACString& key, nsISFVBareItem **_retval) override; \ NS_IMETHOD Set(const nsACString& key, nsISFVBareItem *item) override; \ NS_IMETHOD Delete(const nsACString& key) override; \ NS_IMETHOD Keys(nsTArray& _retval) 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_NSISFVPARAMS \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_get)\ nsresult Get(const nsACString& key, nsISFVBareItem **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_set)\ nsresult Set(const nsACString& key, nsISFVBareItem *item); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_delete)\ nsresult Delete(const nsACString& key); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVParams_keys)\ nsresult Keys(nsTArray& _retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVPARAMS(_to) \ NS_IMETHOD Get(const nsACString& key, nsISFVBareItem **_retval) override { return _to Get(key, _retval); } \ NS_IMETHOD Set(const nsACString& key, nsISFVBareItem *item) override { return _to Set(key, item); } \ NS_IMETHOD Delete(const nsACString& key) override { return _to Delete(key); } \ NS_IMETHOD Keys(nsTArray& _retval) override { return _to Keys(_retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVPARAMS(_to) \ NS_IMETHOD Get(const nsACString& key, nsISFVBareItem **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(key, _retval); } \ NS_IMETHOD Set(const nsACString& key, nsISFVBareItem *item) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(key, item); } \ NS_IMETHOD Delete(const nsACString& key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Delete(key); } \ NS_IMETHOD Keys(nsTArray& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Keys(_retval); } /* starting interface: nsISFVParametrizable */ #define NS_ISFVPARAMETRIZABLE_IID_STR "6c0399f8-01de-4b25-b339-68e35e8d2e49" #define NS_ISFVPARAMETRIZABLE_IID \ {0x6c0399f8, 0x01de, 0x4b25, \ { 0xb3, 0x39, 0x68, 0xe3, 0x5e, 0x8d, 0x2e, 0x49 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVParametrizable) nsISFVParametrizable : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVPARAMETRIZABLE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVParametrizable; /* readonly attribute nsISFVParams params; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVParametrizable_params) NS_IMETHOD GetParams(nsISFVParams **aParams) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVPARAMETRIZABLE \ NS_IMETHOD GetParams(nsISFVParams **aParams) 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_NSISFVPARAMETRIZABLE \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVParametrizable_params)\ nsresult GetParams(nsISFVParams **aParams); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVPARAMETRIZABLE(_to) \ NS_IMETHOD GetParams(nsISFVParams **aParams) override { return _to GetParams(aParams); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVPARAMETRIZABLE(_to) \ NS_IMETHOD GetParams(nsISFVParams **aParams) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParams(aParams); } /* starting interface: nsISFVItemOrInnerList */ #define NS_ISFVITEMORINNERLIST_IID_STR "99ac1b56-b5b3-44e7-ad96-db7444aae4b2" #define NS_ISFVITEMORINNERLIST_IID \ {0x99ac1b56, 0xb5b3, 0x44e7, \ { 0xad, 0x96, 0xdb, 0x74, 0x44, 0xaa, 0xe4, 0xb2 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVItemOrInnerList) nsISFVItemOrInnerList : public nsISFVParametrizable { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVITEMORINNERLIST_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVItemOrInnerList; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVITEMORINNERLIST \ /* no methods! */ /* 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_NSISFVITEMORINNERLIST \ /* no methods! */ /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVITEMORINNERLIST(_to) \ /* no methods! */ /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVITEMORINNERLIST(_to) \ /* no methods! */ /* starting interface: nsISFVSerialize */ #define NS_ISFVSERIALIZE_IID_STR "28b9215d-c131-413c-9482-0004a371a5ec" #define NS_ISFVSERIALIZE_IID \ {0x28b9215d, 0xc131, 0x413c, \ { 0x94, 0x82, 0x00, 0x04, 0xa3, 0x71, 0xa5, 0xec }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVSerialize) nsISFVSerialize : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVSERIALIZE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVSerialize; /* ACString serialize (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVSerialize_serialize) NS_IMETHOD Serialize(nsACString& _retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVSERIALIZE \ NS_IMETHOD Serialize(nsACString& _retval) 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_NSISFVSERIALIZE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVSerialize_serialize)\ nsresult Serialize(nsACString& _retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVSERIALIZE(_to) \ NS_IMETHOD Serialize(nsACString& _retval) override { return _to Serialize(_retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVSERIALIZE(_to) \ NS_IMETHOD Serialize(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(_retval); } /* starting interface: nsISFVItem */ #define NS_ISFVITEM_IID_STR "abe8826b-6af7-4e54-bd2c-46ab231700ce" #define NS_ISFVITEM_IID \ {0xabe8826b, 0x6af7, 0x4e54, \ { 0xbd, 0x2c, 0x46, 0xab, 0x23, 0x17, 0x00, 0xce }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVItem) nsISFVItem : public nsISFVItemOrInnerList { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVITEM_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVItem; /* readonly attribute nsISFVBareItem value; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVItem_value) NS_IMETHOD GetValue(nsISFVBareItem **aValue) = 0; /* ACString serialize (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVItem_serialize) NS_IMETHOD Serialize(nsACString& _retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVITEM \ NS_IMETHOD GetValue(nsISFVBareItem **aValue) override; \ NS_IMETHOD Serialize(nsACString& _retval) 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_NSISFVITEM \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVItem_value)\ nsresult GetValue(nsISFVBareItem **aValue); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVItem_serialize)\ nsresult Serialize(nsACString& _retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVITEM(_to) \ NS_IMETHOD GetValue(nsISFVBareItem **aValue) override { return _to GetValue(aValue); } \ NS_IMETHOD Serialize(nsACString& _retval) override { return _to Serialize(_retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVITEM(_to) \ NS_IMETHOD GetValue(nsISFVBareItem **aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \ NS_IMETHOD Serialize(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(_retval); } /* starting interface: nsISFVInnerList */ #define NS_ISFVINNERLIST_IID_STR "b2e52be2-8488-41b2-9ee2-3c48d92d095c" #define NS_ISFVINNERLIST_IID \ {0xb2e52be2, 0x8488, 0x41b2, \ { 0x9e, 0xe2, 0x3c, 0x48, 0xd9, 0x2d, 0x09, 0x5c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVInnerList) nsISFVInnerList : public nsISFVItemOrInnerList { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVINNERLIST_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVInnerList; /* attribute Array items; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVInnerList_items) NS_IMETHOD GetItems(nsTArray>& aItems) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVInnerList_items) NS_IMETHOD SetItems(const nsTArray>& aItems) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVINNERLIST \ NS_IMETHOD GetItems(nsTArray>& aItems) override; \ NS_IMETHOD SetItems(const nsTArray>& aItems) 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_NSISFVINNERLIST \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVInnerList_items)\ nsresult GetItems(nsTArray>& aItems); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVInnerList_items)\ nsresult SetItems(const nsTArray>& aItems); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVINNERLIST(_to) \ NS_IMETHOD GetItems(nsTArray>& aItems) override { return _to GetItems(aItems); } \ NS_IMETHOD SetItems(const nsTArray>& aItems) override { return _to SetItems(aItems); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVINNERLIST(_to) \ NS_IMETHOD GetItems(nsTArray>& aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItems(aItems); } \ NS_IMETHOD SetItems(const nsTArray>& aItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItems(aItems); } /* starting interface: nsISFVList */ #define NS_ISFVLIST_IID_STR "02bb92a6-d1de-449c-b54f-d137f30c613d" #define NS_ISFVLIST_IID \ {0x02bb92a6, 0xd1de, 0x449c, \ { 0xb5, 0x4f, 0xd1, 0x37, 0xf3, 0x0c, 0x61, 0x3d }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVList) nsISFVList : public nsISFVSerialize { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVLIST_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVList; /* attribute Array members; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVList_members) NS_IMETHOD GetMembers(nsTArray>& aMembers) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVList_members) NS_IMETHOD SetMembers(const nsTArray>& aMembers) = 0; /* void parseMore (in ACString header); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVList_parseMore) NS_IMETHOD ParseMore(const nsACString& header) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVLIST \ NS_IMETHOD GetMembers(nsTArray>& aMembers) override; \ NS_IMETHOD SetMembers(const nsTArray>& aMembers) override; \ NS_IMETHOD ParseMore(const nsACString& header) 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_NSISFVLIST \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsISFVList_members)\ nsresult GetMembers(nsTArray>& aMembers); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsISFVList_members)\ nsresult SetMembers(const nsTArray>& aMembers); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVList_parseMore)\ nsresult ParseMore(const nsACString& header); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVLIST(_to) \ NS_IMETHOD GetMembers(nsTArray>& aMembers) override { return _to GetMembers(aMembers); } \ NS_IMETHOD SetMembers(const nsTArray>& aMembers) override { return _to SetMembers(aMembers); } \ NS_IMETHOD ParseMore(const nsACString& header) override { return _to ParseMore(header); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVLIST(_to) \ NS_IMETHOD GetMembers(nsTArray>& aMembers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMembers(aMembers); } \ NS_IMETHOD SetMembers(const nsTArray>& aMembers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMembers(aMembers); } \ NS_IMETHOD ParseMore(const nsACString& header) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseMore(header); } /* starting interface: nsISFVDictionary */ #define NS_ISFVDICTIONARY_IID_STR "6642a7fe-7026-4eba-b730-05e230ee3437" #define NS_ISFVDICTIONARY_IID \ {0x6642a7fe, 0x7026, 0x4eba, \ { 0xb7, 0x30, 0x05, 0xe2, 0x30, 0xee, 0x34, 0x37 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVDictionary) nsISFVDictionary : public nsISFVSerialize { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVDICTIONARY_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVDictionary; /* nsISFVItemOrInnerList get (in ACString key); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_get) NS_IMETHOD Get(const nsACString& key, nsISFVItemOrInnerList **_retval) = 0; /* void set (in ACString key, in nsISFVItemOrInnerList member_value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_set) NS_IMETHOD Set(const nsACString& key, nsISFVItemOrInnerList *member_value) = 0; /* void delete (in ACString key); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_delete) NS_IMETHOD Delete(const nsACString& key) = 0; /* Array keys (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_keys) NS_IMETHOD Keys(nsTArray& _retval) = 0; /* void parseMore (in ACString header); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_parseMore) NS_IMETHOD ParseMore(const nsACString& header) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVDICTIONARY \ NS_IMETHOD Get(const nsACString& key, nsISFVItemOrInnerList **_retval) override; \ NS_IMETHOD Set(const nsACString& key, nsISFVItemOrInnerList *member_value) override; \ NS_IMETHOD Delete(const nsACString& key) override; \ NS_IMETHOD Keys(nsTArray& _retval) override; \ NS_IMETHOD ParseMore(const nsACString& header) 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_NSISFVDICTIONARY \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_get)\ nsresult Get(const nsACString& key, nsISFVItemOrInnerList **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_set)\ nsresult Set(const nsACString& key, nsISFVItemOrInnerList *member_value); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_delete)\ nsresult Delete(const nsACString& key); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_keys)\ nsresult Keys(nsTArray& _retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVDictionary_parseMore)\ nsresult ParseMore(const nsACString& header); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVDICTIONARY(_to) \ NS_IMETHOD Get(const nsACString& key, nsISFVItemOrInnerList **_retval) override { return _to Get(key, _retval); } \ NS_IMETHOD Set(const nsACString& key, nsISFVItemOrInnerList *member_value) override { return _to Set(key, member_value); } \ NS_IMETHOD Delete(const nsACString& key) override { return _to Delete(key); } \ NS_IMETHOD Keys(nsTArray& _retval) override { return _to Keys(_retval); } \ NS_IMETHOD ParseMore(const nsACString& header) override { return _to ParseMore(header); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVDICTIONARY(_to) \ NS_IMETHOD Get(const nsACString& key, nsISFVItemOrInnerList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(key, _retval); } \ NS_IMETHOD Set(const nsACString& key, nsISFVItemOrInnerList *member_value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Set(key, member_value); } \ NS_IMETHOD Delete(const nsACString& key) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Delete(key); } \ NS_IMETHOD Keys(nsTArray& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Keys(_retval); } \ NS_IMETHOD ParseMore(const nsACString& header) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseMore(header); } /* starting interface: nsISFVService */ #define NS_ISFVSERVICE_IID_STR "049f4be1-2f22-4438-a8da-518552ed390c" #define NS_ISFVSERVICE_IID \ {0x049f4be1, 0x2f22, 0x4438, \ { 0xa8, 0xda, 0x51, 0x85, 0x52, 0xed, 0x39, 0x0c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISFVService) nsISFVService : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISFVSERVICE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISFVService; /* nsISFVDictionary parseDictionary (in ACString header); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseDictionary) NS_IMETHOD ParseDictionary(const nsACString& header, nsISFVDictionary **_retval) = 0; /* nsISFVList parseList (in ACString header); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseList) NS_IMETHOD ParseList(const nsACString& header, nsISFVList **_retval) = 0; /* nsISFVItem parseItem (in ACString header); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseItem) NS_IMETHOD ParseItem(const nsACString& header, nsISFVItem **_retval) = 0; /* nsISFVInteger newInteger (in long long value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newInteger) NS_IMETHOD NewInteger(int64_t value, nsISFVInteger **_retval) = 0; /* nsISFVBool newBool (in boolean value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newBool) NS_IMETHOD NewBool(bool value, nsISFVBool **_retval) = 0; /* nsISFVDecimal newDecimal (in double value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newDecimal) NS_IMETHOD NewDecimal(double value, nsISFVDecimal **_retval) = 0; /* nsISFVString newString (in ACString value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newString) NS_IMETHOD NewString(const nsACString& value, nsISFVString **_retval) = 0; /* nsISFVByteSeq newByteSequence (in ACString value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newByteSequence) NS_IMETHOD NewByteSequence(const nsACString& value, nsISFVByteSeq **_retval) = 0; /* nsISFVToken newToken (in ACString value); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newToken) NS_IMETHOD NewToken(const nsACString& value, nsISFVToken **_retval) = 0; /* nsISFVParams newParameters (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newParameters) NS_IMETHOD NewParameters(nsISFVParams **_retval) = 0; /* nsISFVInnerList newInnerList (in Array items, in nsISFVParams params); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newInnerList) NS_IMETHOD NewInnerList(const nsTArray>& items, nsISFVParams *params, nsISFVInnerList **_retval) = 0; /* nsISFVItem newItem (in nsISFVBareItem value, in nsISFVParams params); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newItem) NS_IMETHOD NewItem(nsISFVBareItem *value, nsISFVParams *params, nsISFVItem **_retval) = 0; /* nsISFVList newList (in Array members); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newList) NS_IMETHOD NewList(const nsTArray>& members, nsISFVList **_retval) = 0; /* nsISFVDictionary newDictionary (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newDictionary) NS_IMETHOD NewDictionary(nsISFVDictionary **_retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISFVSERVICE \ NS_IMETHOD ParseDictionary(const nsACString& header, nsISFVDictionary **_retval) override; \ NS_IMETHOD ParseList(const nsACString& header, nsISFVList **_retval) override; \ NS_IMETHOD ParseItem(const nsACString& header, nsISFVItem **_retval) override; \ NS_IMETHOD NewInteger(int64_t value, nsISFVInteger **_retval) override; \ NS_IMETHOD NewBool(bool value, nsISFVBool **_retval) override; \ NS_IMETHOD NewDecimal(double value, nsISFVDecimal **_retval) override; \ NS_IMETHOD NewString(const nsACString& value, nsISFVString **_retval) override; \ NS_IMETHOD NewByteSequence(const nsACString& value, nsISFVByteSeq **_retval) override; \ NS_IMETHOD NewToken(const nsACString& value, nsISFVToken **_retval) override; \ NS_IMETHOD NewParameters(nsISFVParams **_retval) override; \ NS_IMETHOD NewInnerList(const nsTArray>& items, nsISFVParams *params, nsISFVInnerList **_retval) override; \ NS_IMETHOD NewItem(nsISFVBareItem *value, nsISFVParams *params, nsISFVItem **_retval) override; \ NS_IMETHOD NewList(const nsTArray>& members, nsISFVList **_retval) override; \ NS_IMETHOD NewDictionary(nsISFVDictionary **_retval) 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_NSISFVSERVICE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseDictionary)\ nsresult ParseDictionary(const nsACString& header, nsISFVDictionary **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseList)\ nsresult ParseList(const nsACString& header, nsISFVList **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_parseItem)\ nsresult ParseItem(const nsACString& header, nsISFVItem **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newInteger)\ nsresult NewInteger(int64_t value, nsISFVInteger **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newBool)\ nsresult NewBool(bool value, nsISFVBool **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newDecimal)\ nsresult NewDecimal(double value, nsISFVDecimal **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newString)\ nsresult NewString(const nsACString& value, nsISFVString **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newByteSequence)\ nsresult NewByteSequence(const nsACString& value, nsISFVByteSeq **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newToken)\ nsresult NewToken(const nsACString& value, nsISFVToken **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newParameters)\ nsresult NewParameters(nsISFVParams **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newInnerList)\ nsresult NewInnerList(const nsTArray>& items, nsISFVParams *params, nsISFVInnerList **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newItem)\ nsresult NewItem(nsISFVBareItem *value, nsISFVParams *params, nsISFVItem **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newList)\ nsresult NewList(const nsTArray>& members, nsISFVList **_retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISFVService_newDictionary)\ nsresult NewDictionary(nsISFVDictionary **_retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISFVSERVICE(_to) \ NS_IMETHOD ParseDictionary(const nsACString& header, nsISFVDictionary **_retval) override { return _to ParseDictionary(header, _retval); } \ NS_IMETHOD ParseList(const nsACString& header, nsISFVList **_retval) override { return _to ParseList(header, _retval); } \ NS_IMETHOD ParseItem(const nsACString& header, nsISFVItem **_retval) override { return _to ParseItem(header, _retval); } \ NS_IMETHOD NewInteger(int64_t value, nsISFVInteger **_retval) override { return _to NewInteger(value, _retval); } \ NS_IMETHOD NewBool(bool value, nsISFVBool **_retval) override { return _to NewBool(value, _retval); } \ NS_IMETHOD NewDecimal(double value, nsISFVDecimal **_retval) override { return _to NewDecimal(value, _retval); } \ NS_IMETHOD NewString(const nsACString& value, nsISFVString **_retval) override { return _to NewString(value, _retval); } \ NS_IMETHOD NewByteSequence(const nsACString& value, nsISFVByteSeq **_retval) override { return _to NewByteSequence(value, _retval); } \ NS_IMETHOD NewToken(const nsACString& value, nsISFVToken **_retval) override { return _to NewToken(value, _retval); } \ NS_IMETHOD NewParameters(nsISFVParams **_retval) override { return _to NewParameters(_retval); } \ NS_IMETHOD NewInnerList(const nsTArray>& items, nsISFVParams *params, nsISFVInnerList **_retval) override { return _to NewInnerList(items, params, _retval); } \ NS_IMETHOD NewItem(nsISFVBareItem *value, nsISFVParams *params, nsISFVItem **_retval) override { return _to NewItem(value, params, _retval); } \ NS_IMETHOD NewList(const nsTArray>& members, nsISFVList **_retval) override { return _to NewList(members, _retval); } \ NS_IMETHOD NewDictionary(nsISFVDictionary **_retval) override { return _to NewDictionary(_retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISFVSERVICE(_to) \ NS_IMETHOD ParseDictionary(const nsACString& header, nsISFVDictionary **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseDictionary(header, _retval); } \ NS_IMETHOD ParseList(const nsACString& header, nsISFVList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseList(header, _retval); } \ NS_IMETHOD ParseItem(const nsACString& header, nsISFVItem **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseItem(header, _retval); } \ NS_IMETHOD NewInteger(int64_t value, nsISFVInteger **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewInteger(value, _retval); } \ NS_IMETHOD NewBool(bool value, nsISFVBool **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewBool(value, _retval); } \ NS_IMETHOD NewDecimal(double value, nsISFVDecimal **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewDecimal(value, _retval); } \ NS_IMETHOD NewString(const nsACString& value, nsISFVString **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewString(value, _retval); } \ NS_IMETHOD NewByteSequence(const nsACString& value, nsISFVByteSeq **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewByteSequence(value, _retval); } \ NS_IMETHOD NewToken(const nsACString& value, nsISFVToken **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewToken(value, _retval); } \ NS_IMETHOD NewParameters(nsISFVParams **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewParameters(_retval); } \ NS_IMETHOD NewInnerList(const nsTArray>& items, nsISFVParams *params, nsISFVInnerList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewInnerList(items, params, _retval); } \ NS_IMETHOD NewItem(nsISFVBareItem *value, nsISFVParams *params, nsISFVItem **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewItem(value, params, _retval); } \ NS_IMETHOD NewList(const nsTArray>& members, nsISFVList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewList(members, _retval); } \ NS_IMETHOD NewDictionary(nsISFVDictionary **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewDictionary(_retval); } #endif /* __gen_nsIStructuredFieldValues_h__ */