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

#ifndef __gen_nsIP3PService_h__
#define __gen_nsIP3PService_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 */

class nsIDOMDocument; /* forward declaration */


/* starting interface:    nsIP3PService */
#define NS_IP3PSERVICE_IID_STR "9a4077bb-f16f-49c2-8cff-3cceb94b5849"

#define NS_IP3PSERVICE_IID \
  {0x9a4077bb, 0xf16f, 0x49c2, \
    { 0x8c, 0xff, 0x3c, 0xce, 0xb9, 0x4b, 0x58, 0x49 }}

class NS_NO_VTABLE nsIP3PService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IP3PSERVICE_IID)

  /**
   * Call this method if you wanna set the policy url on the document.
   */
  /* void setDocumentURL (in nsIDOMDocument aDocument, in nsIURI aPolicyURI); */
  NS_IMETHOD SetDocumentURL(nsIDOMDocument *aDocument, nsIURI *aPolicyURI) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIP3PSERVICE \
  NS_IMETHOD SetDocumentURL(nsIDOMDocument *aDocument, nsIURI *aPolicyURI); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIP3PSERVICE(_to) \
  NS_IMETHOD SetDocumentURL(nsIDOMDocument *aDocument, nsIURI *aPolicyURI) { return _to SetDocumentURL(aDocument, aPolicyURI); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIP3PSERVICE(_to) \
  NS_IMETHOD SetDocumentURL(nsIDOMDocument *aDocument, nsIURI *aPolicyURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentURL(aDocument, aPolicyURI); } 

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

/* Header file */
class nsP3PService : public nsIP3PService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIP3PSERVICE

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

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsP3PService, nsIP3PService)

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

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

/* void setDocumentURL (in nsIDOMDocument aDocument, in nsIURI aPolicyURI); */
NS_IMETHODIMP nsP3PService::SetDocumentURL(nsIDOMDocument *aDocument, nsIURI *aPolicyURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIP3PService_h__ */
