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

#ifndef __gen_nsIWebBrowserStream_h__
#define __gen_nsIWebBrowserStream_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:    nsIWebBrowserStream */
#define NS_IWEBBROWSERSTREAM_IID_STR "27108bc2-dc7c-42d9-9c64-132550c78ce4"

#define NS_IWEBBROWSERSTREAM_IID \
  {0x27108bc2, 0xdc7c, 0x42d9, \
    { 0x9c, 0x64, 0x13, 0x25, 0x50, 0xc7, 0x8c, 0xe4 }}

class NS_NO_VTABLE nsIWebBrowserStream : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERSTREAM_IID)

  /* void openStream (in string aBaseURI, in string aContentType); */
  NS_IMETHOD OpenStream(const char *aBaseURI, const char *aContentType) = 0;

  /* void appendToStream (in string aData, in long aLen); */
  NS_IMETHOD AppendToStream(const char *aData, PRInt32 aLen) = 0;

  /* void closeStream (); */
  NS_IMETHOD CloseStream(void) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWEBBROWSERSTREAM \
  NS_IMETHOD OpenStream(const char *aBaseURI, const char *aContentType); \
  NS_IMETHOD AppendToStream(const char *aData, PRInt32 aLen); \
  NS_IMETHOD CloseStream(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWEBBROWSERSTREAM(_to) \
  NS_IMETHOD OpenStream(const char *aBaseURI, const char *aContentType) { return _to OpenStream(aBaseURI, aContentType); } \
  NS_IMETHOD AppendToStream(const char *aData, PRInt32 aLen) { return _to AppendToStream(aData, aLen); } \
  NS_IMETHOD CloseStream(void) { return _to CloseStream(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWEBBROWSERSTREAM(_to) \
  NS_IMETHOD OpenStream(const char *aBaseURI, const char *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenStream(aBaseURI, aContentType); } \
  NS_IMETHOD AppendToStream(const char *aData, PRInt32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendToStream(aData, aLen); } \
  NS_IMETHOD CloseStream(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStream(); } 

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

/* Header file */
class nsWebBrowserStream : public nsIWebBrowserStream
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWEBBROWSERSTREAM

  nsWebBrowserStream();

private:
  ~nsWebBrowserStream();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsWebBrowserStream, nsIWebBrowserStream)

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

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

/* void openStream (in string aBaseURI, in string aContentType); */
NS_IMETHODIMP nsWebBrowserStream::OpenStream(const char *aBaseURI, const char *aContentType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void appendToStream (in string aData, in long aLen); */
NS_IMETHODIMP nsWebBrowserStream::AppendToStream(const char *aData, PRInt32 aLen)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void closeStream (); */
NS_IMETHODIMP nsWebBrowserStream::CloseStream()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIWebBrowserStream_h__ */
