123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- #ifndef __gen_nsIWebBrowserStream_h__
- #define __gen_nsIWebBrowserStream_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- class nsIURI;
- #define NS_IWEBBROWSERSTREAM_IID_STR "86d02f0e-219b-4cfc-9c88-bd98d2cce0b8"
- #define NS_IWEBBROWSERSTREAM_IID \
- {0x86d02f0e, 0x219b, 0x4cfc, \
- { 0x9c, 0x88, 0xbd, 0x98, 0xd2, 0xcc, 0xe0, 0xb8 }}
- class NS_NO_VTABLE nsIWebBrowserStream : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERSTREAM_IID)
-
-
- NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) = 0;
-
-
- NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen) = 0;
-
-
- NS_IMETHOD CloseStream(void) = 0;
- };
- #define NS_DECL_NSIWEBBROWSERSTREAM \
- NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType); \
- NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen); \
- NS_IMETHOD CloseStream(void);
- #define NS_FORWARD_NSIWEBBROWSERSTREAM(_to) \
- NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) { return _to OpenStream(aBaseURI, aContentType); } \
- NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 aLen) { return _to AppendToStream(aData, aLen); } \
- NS_IMETHOD CloseStream(void) { return _to CloseStream(); }
- #define NS_FORWARD_SAFE_NSIWEBBROWSERSTREAM(_to) \
- NS_IMETHOD OpenStream(nsIURI *aBaseURI, const nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenStream(aBaseURI, aContentType); } \
- NS_IMETHOD AppendToStream(const PRUint8 *aData, PRUint32 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
- class nsWebBrowserStream : public nsIWebBrowserStream
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIWEBBROWSERSTREAM
- nsWebBrowserStream();
- private:
- ~nsWebBrowserStream();
- protected:
-
- };
- NS_IMPL_ISUPPORTS1(nsWebBrowserStream, nsIWebBrowserStream)
- nsWebBrowserStream::nsWebBrowserStream()
- {
-
- }
- nsWebBrowserStream::~nsWebBrowserStream()
- {
-
- }
- NS_IMETHODIMP nsWebBrowserStream::OpenStream(nsIURI *aBaseURI, const nsACString & aContentType)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsWebBrowserStream::AppendToStream(const PRUint8 *aData, PRUint32 aLen)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsWebBrowserStream::CloseStream()
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- #endif
- #endif
|