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

#ifndef __gen_nsIContentViewerInternal_h__
#define __gen_nsIContentViewerInternal_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:    nsIContentViewerInternal */
#define NS_ICONTENTVIEWERINTERNAL_IID_STR "55732fda-6576-41c0-b181-1d2c1a2e676a"

#define NS_ICONTENTVIEWERINTERNAL_IID \
  {0x55732fda, 0x6576, 0x41c0, \
    { 0xb1, 0x81, 0x1d, 0x2c, 0x1a, 0x2e, 0x67, 0x6a }}

class NS_NO_VTABLE nsIContentViewerInternal : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERINTERNAL_IID)

  /* [nostdcall] boolean permitUnloadInternal (in boolean aCallerClosesWindow, inout boolean aShouldPrompt); */
  virtual nsresult PermitUnloadInternal(bool aCallerClosesWindow, bool *aShouldPrompt, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewerInternal, NS_ICONTENTVIEWERINTERNAL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTVIEWERINTERNAL \
  virtual nsresult PermitUnloadInternal(bool aCallerClosesWindow, bool *aShouldPrompt, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTVIEWERINTERNAL(_to) \
  virtual nsresult PermitUnloadInternal(bool aCallerClosesWindow, bool *aShouldPrompt, bool *_retval) { return _to PermitUnloadInternal(aCallerClosesWindow, aShouldPrompt, _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_NSICONTENTVIEWERINTERNAL(_to) \
  virtual nsresult PermitUnloadInternal(bool aCallerClosesWindow, bool *aShouldPrompt, bool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PermitUnloadInternal(aCallerClosesWindow, aShouldPrompt, _retval); } 

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

/* Header file */
class nsContentViewerInternal : public nsIContentViewerInternal
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTVIEWERINTERNAL

  nsContentViewerInternal();

private:
  ~nsContentViewerInternal();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsContentViewerInternal, nsIContentViewerInternal)

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

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

/* [nostdcall] boolean permitUnloadInternal (in boolean aCallerClosesWindow, inout boolean aShouldPrompt); */
nsresult nsContentViewerInternal::PermitUnloadInternal(bool aCallerClosesWindow, bool *aShouldPrompt, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIContentViewerInternal_h__ */
