2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-12-04 23:29:42 +03:00
|
|
|
|
|
|
|
#ifndef ___nsscriptableinputstream___h_
|
|
|
|
#define ___nsscriptableinputstream___h_
|
|
|
|
|
|
|
|
#include "nsIScriptableInputStream.h"
|
|
|
|
#include "nsIInputStream.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2012-06-06 03:51:58 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-12-04 23:29:42 +03:00
|
|
|
|
|
|
|
#define NS_SCRIPTABLEINPUTSTREAM_CID \
|
|
|
|
{ 0x7225c040, 0xa9bf, 0x11d3, { 0xa1, 0x97, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
|
|
|
|
|
2000-09-14 03:57:52 +04:00
|
|
|
#define NS_SCRIPTABLEINPUTSTREAM_CONTRACTID "@mozilla.org/scriptableinputstream;1"
|
1999-12-04 23:29:42 +03:00
|
|
|
#define NS_SCRIPTABLEINPUTSTREAM_CLASSNAME "Scriptable Input Stream"
|
|
|
|
|
2012-06-06 03:51:58 +04:00
|
|
|
class nsScriptableInputStream MOZ_FINAL : public nsIScriptableInputStream {
|
1999-12-04 23:29:42 +03:00
|
|
|
public:
|
|
|
|
// nsISupports methods
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
2008-02-02 05:07:49 +03:00
|
|
|
// nsIScriptableInputStream methods
|
|
|
|
NS_DECL_NSISCRIPTABLEINPUTSTREAM
|
1999-12-04 23:29:42 +03:00
|
|
|
|
|
|
|
// nsScriptableInputStream methods
|
2008-02-02 05:07:49 +03:00
|
|
|
nsScriptableInputStream() {}
|
1999-12-04 23:29:42 +03:00
|
|
|
|
2010-06-10 22:11:11 +04:00
|
|
|
static nsresult
|
1999-12-04 23:29:42 +03:00
|
|
|
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
|
2004-01-15 09:14:18 +03:00
|
|
|
|
1999-12-04 23:29:42 +03:00
|
|
|
private:
|
2007-04-23 18:21:53 +04:00
|
|
|
~nsScriptableInputStream() {}
|
2004-01-15 09:14:18 +03:00
|
|
|
|
1999-12-04 23:29:42 +03:00
|
|
|
nsCOMPtr<nsIInputStream> mInputStream;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ___nsscriptableinputstream___h_
|