embedding/browser/webBrowser/nsEmbedStream.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/browser/webBrowser/nsEmbedStream.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsEmbedStream_h__
    1.10 +#define nsEmbedStream_h__
    1.11 +
    1.12 +#include "nsCOMPtr.h"
    1.13 +#include "nsIOutputStream.h"
    1.14 +#include "nsIURI.h"
    1.15 +#include "nsIWebBrowser.h"
    1.16 +
    1.17 +class nsEmbedStream : public nsISupports
    1.18 +{
    1.19 + public:
    1.20 +
    1.21 +  nsEmbedStream();
    1.22 +  virtual ~nsEmbedStream();
    1.23 +
    1.24 +  void      InitOwner      (nsIWebBrowser *aOwner);
    1.25 +  NS_METHOD Init           (void);
    1.26 +
    1.27 +  NS_METHOD OpenStream     (nsIURI *aBaseURI, const nsACString& aContentType);
    1.28 +  NS_METHOD AppendToStream (const uint8_t *aData, uint32_t aLen);
    1.29 +  NS_METHOD CloseStream    (void);
    1.30 +
    1.31 +  NS_DECL_ISUPPORTS
    1.32 +
    1.33 + private:
    1.34 +  nsIWebBrowser            *mOwner;
    1.35 +  nsCOMPtr<nsIOutputStream> mOutputStream;
    1.36 +};
    1.37 +
    1.38 +#endif // nsEmbedStream_h__

mercurial