/*
 * 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 MOZ_BINDING(binding_to, idl, class, XPIDL_nsIURLQueryStringStripper) nsIURLQueryStringStripper : public nsISupports {
 public:

  NS_INLINE_DECL_STATIC_IID(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); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_strip)
  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); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_stripForCopyOrShare)
  JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval) = 0;

  /* boolean canStripForShare (in nsIURI aURI); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_canStripForShare)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanStripForShare(nsIURI *aURI, bool *_retval) = 0;

  /* ACString testGetStripList (); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_testGetStripList)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestGetStripList(nsACString& _retval) = 0;

};


/* 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 CanStripForShare(nsIURI *aURI, bool *_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 \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_strip)\
  nsresult Strip(nsIURI *aURI, bool aIsPBM, nsIURI **aOutput, uint32_t *_retval); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_stripForCopyOrShare)\
  [[nodiscard]] nsresult StripForCopyOrShare(nsIURI *aURI, nsIURI **_retval); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_canStripForShare)\
  nsresult CanStripForShare(nsIURI *aURI, bool *_retval); \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIURLQueryStringStripper_testGetStripList)\
  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 CanStripForShare(nsIURI *aURI, bool *_retval) override { return _to CanStripForShare(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 CanStripForShare(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanStripForShare(aURI, _retval); } \
  NS_IMETHOD TestGetStripList(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestGetStripList(_retval); } 


#endif /* __gen_nsIURLQueryStringStripper_h__ */
