/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWebFilters.idl
 */

#ifndef __gen_nsIWebFilters_h__
#define __gen_nsIWebFilters_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
class nsIURI; /* forward declaration */


/* starting interface:    nsIWebFilters */
#define NS_IWEBFILTERS_IID_STR "ee9d42f2-1dd1-11b2-b909-b34b63e205e8"

#define NS_IWEBFILTERS_IID \
  {0xee9d42f2, 0x1dd1, 0x11b2, \
    { 0xb9, 0x09, 0xb3, 0x4b, 0x63, 0xe2, 0x05, 0xe8 }}

class NS_NO_VTABLE nsIWebFilters : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBFILTERS_IID)

  /**
    * allowLoading the specified uri.
    */
  /* boolean allowLoading (in nsIURI uri); */
  NS_IMETHOD AllowLoading(nsIURI *uri, PRBool *_retval) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWEBFILTERS \
  NS_IMETHOD AllowLoading(nsIURI *uri, PRBool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWEBFILTERS(_to) \
  NS_IMETHOD AllowLoading(nsIURI *uri, PRBool *_retval) { return _to ## AllowLoading(uri, _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_NSIWEBFILTERS(_to) \
  NS_IMETHOD AllowLoading(nsIURI *uri, PRBool *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> AllowLoading(uri, _retval); } 

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

/* Header file */
class nsWebFilters : public nsIWebFilters
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWEBFILTERS

  nsWebFilters();
  virtual ~nsWebFilters();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWebFilters, nsIWebFilters)

nsWebFilters::nsWebFilters()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* boolean allowLoading (in nsIURI uri); */
NS_IMETHODIMP nsWebFilters::AllowLoading(nsIURI *uri, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

#define NS_WEBFILTERS_CID                  \
{ /* 4677ea1e-1dd2-11b2-8654-e836efb6995c */         \
    0x4677ea1e,                                      \
    0x1dd2,                                          \
    0x11b2,                                          \
    {0x86, 0x54, 0xe8, 0x36, 0xef, 0xb6, 0x99, 0x5c} \
}
#define NS_WEBFILTERS_CONTRACTID "@mozilla.org/network/filters;1" 

#endif /* __gen_nsIWebFilters_h__ */
