1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef ___nsscriptableinputstream___h_
8 #define ___nsscriptableinputstream___h_
10 #include "nsIScriptableInputStream.h"
11 #include "nsIInputStream.h"
13 #include "mozilla/Attributes.h"
15 #define NS_SCRIPTABLEINPUTSTREAM_CID \
16 { 0x7225c040, 0xa9bf, 0x11d3, { 0xa1, 0x97, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
18 #define NS_SCRIPTABLEINPUTSTREAM_CONTRACTID "@mozilla.org/scriptableinputstream;1"
20 class nsScriptableInputStream MOZ_FINAL
: public nsIScriptableInputStream
23 // nsISupports methods
26 // nsIScriptableInputStream methods
27 NS_DECL_NSISCRIPTABLEINPUTSTREAM
29 // nsScriptableInputStream methods
30 nsScriptableInputStream()
35 Create(nsISupports
* aOuter
, REFNSIID aIID
, void** aResult
);
38 ~nsScriptableInputStream()
42 nsresult
ReadHelper(char* aBuffer
, uint32_t aCount
);
44 nsCOMPtr
<nsIInputStream
> mInputStream
;
47 #endif // ___nsscriptableinputstream___h_