michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsEmbedStream_h__ michael@0: #define nsEmbedStream_h__ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIOutputStream.h" michael@0: #include "nsIURI.h" michael@0: #include "nsIWebBrowser.h" michael@0: michael@0: class nsEmbedStream : public nsISupports michael@0: { michael@0: public: michael@0: michael@0: nsEmbedStream(); michael@0: virtual ~nsEmbedStream(); michael@0: michael@0: void InitOwner (nsIWebBrowser *aOwner); michael@0: NS_METHOD Init (void); michael@0: michael@0: NS_METHOD OpenStream (nsIURI *aBaseURI, const nsACString& aContentType); michael@0: NS_METHOD AppendToStream (const uint8_t *aData, uint32_t aLen); michael@0: NS_METHOD CloseStream (void); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: private: michael@0: nsIWebBrowser *mOwner; michael@0: nsCOMPtr mOutputStream; michael@0: }; michael@0: michael@0: #endif // nsEmbedStream_h__