Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/nsIURLQueryStringStripper.idl
*/
#ifndef __gen_nsIURLQueryStringStripper_h__
#define __gen_nsIURLQueryStringStripper_h__
#include "nsISupports.h"
#include "nsIURI.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: nsIURLQueryStringStripper */
#define NS_IURLQUERYSTRINGSTRIPPER_IID_STR "6b42a890-2624-4560-99c4-b25380e8cd77"
#define NS_IURLQUERYSTRINGSTRIPPER_IID \
{0x6b42a890, 0x2624, 0x4560, \
{ 0x99, 0xc4, 0xb2, 0x53, 0x80, 0xe8, 0xcd, 0x77 }}
class NS_NO_VTABLE nsIURLQueryStringStripper : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLQUERYSTRINGSTRIPPER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIURLQueryStringStripper;
/* uint32_t strip (in nsIURI aURI, in boolean aIsPBM, out nsIURI aOutput); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval) = 0;
/* [must_use] nsIURI stripForCopyOrShare (in nsIURI aURI); */
JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval) = 0;
/* ACString testGetStripList (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestGetStripList(nsACString& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIURLQueryStringStripper, NS_IURLQUERYSTRINGSTRIPPER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLQUERYSTRINGSTRIPPER \
NS_IMETHOD Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval) override; \
[[nodiscard]] NS_IMETHOD StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval) override; \
NS_IMETHOD TestGetStripList(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_NSIURLQUERYSTRINGSTRIPPER \
nsresult Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval); \
[[nodiscard]] nsresult StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval); \
nsresult TestGetStripList(nsACString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLQUERYSTRINGSTRIPPER(_to) \
NS_IMETHOD Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval) override { return _to Strip(aURI, aIsPBM, aOutput, _retval); } \
[[nodiscard]] NS_IMETHOD StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval) override { return _to StripForCopyOrShare(aURI, _retval); } \
NS_IMETHOD TestGetStripList(nsACString& _retval) override { return _to TestGetStripList(_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_NSIURLQUERYSTRINGSTRIPPER(_to) \
NS_IMETHOD Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Strip(aURI, aIsPBM, aOutput, _retval); } \
[[nodiscard]] NS_IMETHOD StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StripForCopyOrShare(aURI, _retval); } \
NS_IMETHOD TestGetStripList(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestGetStripList(_retval); }
#endif /* __gen_nsIURLQueryStringStripper_h__ */