Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/xpcom/io/nsScriptableInputStream.h
Line
Count
Source (jump to first uncovered line)
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/. */
6
7
#ifndef ___nsscriptableinputstream___h_
8
#define ___nsscriptableinputstream___h_
9
10
#include "nsIScriptableInputStream.h"
11
#include "nsIInputStream.h"
12
#include "nsCOMPtr.h"
13
#include "mozilla/Attributes.h"
14
15
#define NS_SCRIPTABLEINPUTSTREAM_CID        \
16
{ 0x7225c040, 0xa9bf, 0x11d3, { 0xa1, 0x97, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
17
18
#define NS_SCRIPTABLEINPUTSTREAM_CONTRACTID "@mozilla.org/scriptableinputstream;1"
19
20
class nsScriptableInputStream final : public nsIScriptableInputStream
21
{
22
public:
23
  // nsISupports methods
24
  NS_DECL_ISUPPORTS
25
26
  // nsIScriptableInputStream methods
27
  NS_DECL_NSISCRIPTABLEINPUTSTREAM
28
29
  // nsScriptableInputStream methods
30
  nsScriptableInputStream()
31
0
  {
32
0
  }
33
34
  static nsresult
35
  Create(nsISupports* aOuter, REFNSIID aIID, void** aResult);
36
37
private:
38
  ~nsScriptableInputStream()
39
0
  {
40
0
  }
41
42
  nsresult ReadHelper(char* aBuffer, uint32_t aCount);
43
44
  nsCOMPtr<nsIInputStream> mInputStream;
45
};
46
47
#endif // ___nsscriptableinputstream___h_