/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-osx64-xr/build/netwerk/base/public/nsIPrivateBrowsingConsumer.idl
 */

#ifndef __gen_nsIPrivateBrowsingConsumer_h__
#define __gen_nsIPrivateBrowsingConsumer_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIPrivateBrowsingConsumer */
#define NS_IPRIVATEBROWSINGCONSUMER_IID_STR "5deb421c-592b-4375-b425-9ac11532aa30"

#define NS_IPRIVATEBROWSINGCONSUMER_IID \
  {0x5deb421c, 0x592b, 0x4375, \
    { 0xb4, 0x25, 0x9a, 0xc1, 0x15, 0x32, 0xaa, 0x30 }}

class NS_SCRIPTABLE nsIPrivateBrowsingConsumer : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRIVATEBROWSINGCONSUMER_IID)

  /* readonly attribute boolean usingPrivateBrowsing; */
  NS_SCRIPTABLE NS_IMETHOD GetUsingPrivateBrowsing(bool *aUsingPrivateBrowsing) = 0;

   /**
   * De-XPCOMed getter to make call-sites cleaner.
   */
  bool UsePrivateBrowsing() {
    bool usingPB;
    GetUsingPrivateBrowsing(&usingPB);
    return usingPB;
  }
};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrivateBrowsingConsumer, NS_IPRIVATEBROWSINGCONSUMER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRIVATEBROWSINGCONSUMER \
  NS_SCRIPTABLE NS_IMETHOD GetUsingPrivateBrowsing(bool *aUsingPrivateBrowsing); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRIVATEBROWSINGCONSUMER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetUsingPrivateBrowsing(bool *aUsingPrivateBrowsing) { return _to GetUsingPrivateBrowsing(aUsingPrivateBrowsing); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRIVATEBROWSINGCONSUMER(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetUsingPrivateBrowsing(bool *aUsingPrivateBrowsing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingPrivateBrowsing(aUsingPrivateBrowsing); } \

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsPrivateBrowsingConsumer : public nsIPrivateBrowsingConsumer
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPRIVATEBROWSINGCONSUMER

  nsPrivateBrowsingConsumer();

private:
  ~nsPrivateBrowsingConsumer();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsPrivateBrowsingConsumer, nsIPrivateBrowsingConsumer)

nsPrivateBrowsingConsumer::nsPrivateBrowsingConsumer()
{
  /* member initializers and constructor code */
}

nsPrivateBrowsingConsumer::~nsPrivateBrowsingConsumer()
{
  /* destructor code */
}

/* readonly attribute boolean usingPrivateBrowsing; */
NS_IMETHODIMP nsPrivateBrowsingConsumer::GetUsingPrivateBrowsing(bool *aUsingPrivateBrowsing)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIPrivateBrowsingConsumer_h__ */
