Bumping manifests a=b2g-bump
[gecko.git] / xpcom / io / nsScriptableInputStream.h
blobf36021696c08357f65b40911ae0d2c7dc642bae3
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"
12 #include "nsCOMPtr.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
22 public:
23 // nsISupports methods
24 NS_DECL_ISUPPORTS
26 // nsIScriptableInputStream methods
27 NS_DECL_NSISCRIPTABLEINPUTSTREAM
29 // nsScriptableInputStream methods
30 nsScriptableInputStream()
34 static nsresult
35 Create(nsISupports* aOuter, REFNSIID aIID, void** aResult);
37 private:
38 ~nsScriptableInputStream()
42 nsresult ReadHelper(char* aBuffer, uint32_t aCount);
44 nsCOMPtr<nsIInputStream> mInputStream;
47 #endif // ___nsscriptableinputstream___h_