Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsICloneableInputStream.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/xpcom/io/nsICloneableInputStream.idl
3
 */
4
5
#ifndef __gen_nsICloneableInputStream_h__
6
#define __gen_nsICloneableInputStream_h__
7
8
9
#ifndef __gen_nsIInputStream_h__
10
#include "nsIInputStream.h"
11
#endif
12
13
#include "mozilla/AlreadyAddRefed.h"
14
#include "mozilla/Assertions.h"
15
#include "mozilla/DebugOnly.h"
16
17
/* For IDL files that don't want to include root IDL files. */
18
#ifndef NS_NO_VTABLE
19
#define NS_NO_VTABLE
20
#endif
21
22
/* starting interface:    nsICloneableInputStream */
23
#define NS_ICLONEABLEINPUTSTREAM_IID_STR "8149be1f-44d3-4f14-8b65-a57a5fbbeb97"
24
25
#define NS_ICLONEABLEINPUTSTREAM_IID \
26
  {0x8149be1f, 0x44d3, 0x4f14, \
27
    { 0x8b, 0x65, 0xa5, 0x7a, 0x5f, 0xbb, 0xeb, 0x97 }}
28
29
class NS_NO_VTABLE nsICloneableInputStream : public nsISupports {
30
 public:
31
32
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLONEABLEINPUTSTREAM_IID)
33
34
  /* [infallible] readonly attribute boolean cloneable; */
35
  NS_IMETHOD GetCloneable(bool *aCloneable) = 0;
36
  inline bool GetCloneable()
37
0
  {
38
0
    bool result;
39
0
    mozilla::DebugOnly<nsresult> rv = GetCloneable(&result);
40
0
    MOZ_ASSERT(NS_SUCCEEDED(rv));
41
0
    return result;
42
0
  }
43
44
  /* nsIInputStream clone (); */
45
  NS_IMETHOD Clone(nsIInputStream **_retval) = 0;
46
47
};
48
49
  NS_DEFINE_STATIC_IID_ACCESSOR(nsICloneableInputStream, NS_ICLONEABLEINPUTSTREAM_IID)
50
51
/* Use this macro when declaring classes that implement this interface. */
52
#define NS_DECL_NSICLONEABLEINPUTSTREAM \
53
  using nsICloneableInputStream::GetCloneable; \
54
  NS_IMETHOD GetCloneable(bool *aCloneable) override; \
55
  NS_IMETHOD Clone(nsIInputStream **_retval) override; 
56
57
/* Use this macro when declaring the members of this interface when the
58
   class doesn't implement the interface. This is useful for forwarding. */
59
#define NS_DECL_NON_VIRTUAL_NSICLONEABLEINPUTSTREAM \
60
  using nsICloneableInputStream::GetCloneable; \
61
  nsresult GetCloneable(bool *aCloneable); \
62
  nsresult Clone(nsIInputStream **_retval); 
63
64
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
65
#define NS_FORWARD_NSICLONEABLEINPUTSTREAM(_to) \
66
  using nsICloneableInputStream::GetCloneable; \
67
0
  NS_IMETHOD GetCloneable(bool *aCloneable) override { return _to GetCloneable(aCloneable); } \
68
0
  NS_IMETHOD Clone(nsIInputStream **_retval) override { return _to Clone(_retval); } 
69
70
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71
#define NS_FORWARD_SAFE_NSICLONEABLEINPUTSTREAM(_to) \
72
  NS_IMETHOD GetCloneable(bool *aCloneable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCloneable(aCloneable); } \
73
  NS_IMETHOD Clone(nsIInputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } 
74
75
76
/* starting interface:    nsICloneableInputStreamWithRange */
77
#define NS_ICLONEABLEINPUTSTREAMWITHRANGE_IID_STR "ece853c3-aded-4cef-8f51-0d1493d60bd5"
78
79
#define NS_ICLONEABLEINPUTSTREAMWITHRANGE_IID \
80
  {0xece853c3, 0xaded, 0x4cef, \
81
    { 0x8f, 0x51, 0x0d, 0x14, 0x93, 0xd6, 0x0b, 0xd5 }}
82
83
class NS_NO_VTABLE nsICloneableInputStreamWithRange : public nsICloneableInputStream {
84
 public:
85
86
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLONEABLEINPUTSTREAMWITHRANGE_IID)
87
88
  /* nsIInputStream cloneWithRange (in uint64_t start, in uint64_t length); */
89
  NS_IMETHOD CloneWithRange(uint64_t start, uint64_t length, nsIInputStream **_retval) = 0;
90
91
};
92
93
  NS_DEFINE_STATIC_IID_ACCESSOR(nsICloneableInputStreamWithRange, NS_ICLONEABLEINPUTSTREAMWITHRANGE_IID)
94
95
/* Use this macro when declaring classes that implement this interface. */
96
#define NS_DECL_NSICLONEABLEINPUTSTREAMWITHRANGE \
97
  NS_IMETHOD CloneWithRange(uint64_t start, uint64_t length, nsIInputStream **_retval) override; 
98
99
/* Use this macro when declaring the members of this interface when the
100
   class doesn't implement the interface. This is useful for forwarding. */
101
#define NS_DECL_NON_VIRTUAL_NSICLONEABLEINPUTSTREAMWITHRANGE \
102
  nsresult CloneWithRange(uint64_t start, uint64_t length, nsIInputStream **_retval); 
103
104
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
105
#define NS_FORWARD_NSICLONEABLEINPUTSTREAMWITHRANGE(_to) \
106
  NS_IMETHOD CloneWithRange(uint64_t start, uint64_t length, nsIInputStream **_retval) override { return _to CloneWithRange(start, length, _retval); } 
107
108
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
109
#define NS_FORWARD_SAFE_NSICLONEABLEINPUTSTREAMWITHRANGE(_to) \
110
  NS_IMETHOD CloneWithRange(uint64_t start, uint64_t length, nsIInputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneWithRange(start, length, _retval); } 
111
112
113
#endif /* __gen_nsICloneableInputStream_h__ */