Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsIChannel.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIChannel.idl
3
 */
4
5
#ifndef __gen_nsIChannel_h__
6
#define __gen_nsIChannel_h__
7
8
9
#ifndef __gen_nsIRequest_h__
10
#include "nsIRequest.h"
11
#endif
12
13
#ifndef __gen_nsILoadInfo_h__
14
#include "nsILoadInfo.h"
15
#endif
16
17
#include "js/GCAnnotations.h"
18
19
/* For IDL files that don't want to include root IDL files. */
20
#ifndef NS_NO_VTABLE
21
#define NS_NO_VTABLE
22
#endif
23
class nsIURI; /* forward declaration */
24
25
class nsIInterfaceRequestor; /* forward declaration */
26
27
class nsIInputStream; /* forward declaration */
28
29
class nsIStreamListener; /* forward declaration */
30
31
#include "nsCOMPtr.h"
32
33
/* starting interface:    nsIChannel */
34
#define NS_ICHANNEL_IID_STR "2c389865-23db-4aa7-9fe5-60cc7b00697e"
35
36
#define NS_ICHANNEL_IID \
37
  {0x2c389865, 0x23db, 0x4aa7, \
38
    { 0x9f, 0xe5, 0x60, 0xcc, 0x7b, 0x00, 0x69, 0x7e }}
39
40
class nsIChannel : public nsIRequest {
41
 public:
42
43
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNEL_IID)
44
45
  /* attribute nsIURI originalURI; */
46
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) = 0;
47
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) = 0;
48
49
  /* readonly attribute nsIURI URI; */
50
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURI(nsIURI **aURI) = 0;
51
52
  /* attribute nsISupports owner; */
53
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOwner(nsISupports **aOwner) = 0;
54
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOwner(nsISupports *aOwner) = 0;
55
56
  /* attribute nsIInterfaceRequestor notificationCallbacks; */
57
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) = 0;
58
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
59
60
  /* readonly attribute nsISupports securityInfo; */
61
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) = 0;
62
63
  /* attribute ACString contentType; */
64
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentType(nsACString& aContentType) = 0;
65
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentType(const nsACString& aContentType) = 0;
66
67
  /* attribute ACString contentCharset; */
68
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentCharset(nsACString& aContentCharset) = 0;
69
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentCharset(const nsACString& aContentCharset) = 0;
70
71
  /* attribute int64_t contentLength; */
72
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentLength(int64_t *aContentLength) = 0;
73
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentLength(int64_t aContentLength) = 0;
74
75
  /* nsIInputStream open (); */
76
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open(nsIInputStream **_retval) = 0;
77
78
  /* nsIInputStream open2 (); */
79
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Open2(nsIInputStream **_retval) = 0;
80
81
  /* void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext); */
82
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) = 0;
83
84
  /* void asyncOpen2 (in nsIStreamListener aListener); */
85
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) = 0;
86
87
  enum {
88
    LOAD_DOCUMENT_URI = 65536U,
89
    LOAD_RETARGETED_DOCUMENT_URI = 131072U,
90
    LOAD_REPLACE = 262144U,
91
    LOAD_INITIAL_DOCUMENT_URI = 524288U,
92
    LOAD_TARGETED = 1048576U,
93
    LOAD_CALL_CONTENT_SNIFFERS = 2097152U,
94
    LOAD_CLASSIFY_URI = 4194304U,
95
    LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE = 8388608U,
96
    LOAD_EXPLICIT_CREDENTIALS = 16777216U,
97
    LOAD_BYPASS_SERVICE_WORKER = 33554432U
98
  };
99
100
  /* attribute unsigned long contentDisposition; */
101
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) = 0;
102
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) = 0;
103
104
  enum {
105
    DISPOSITION_INLINE = 0U,
106
    DISPOSITION_ATTACHMENT = 1U
107
  };
108
109
  /* attribute AString contentDispositionFilename; */
110
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentDispositionFilename(nsAString& aContentDispositionFilename) = 0;
111
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetContentDispositionFilename(const nsAString& aContentDispositionFilename) = 0;
112
113
  /* readonly attribute ACString contentDispositionHeader; */
114
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentDispositionHeader(nsACString& aContentDispositionHeader) = 0;
115
116
  /* attribute nsILoadInfo loadInfo; */
117
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) = 0;
118
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) = 0;
119
120
  /* readonly attribute bool isDocument; */
121
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsDocument(bool *aIsDocument) = 0;
122
123
   inline bool IsDocument()
124
0
  {
125
0
    bool isDocument = false;
126
0
    if (NS_SUCCEEDED(GetIsDocument(&isDocument)) && isDocument) {
127
0
      return true;
128
0
    }
129
0
    return false;
130
0
  }
131
  inline already_AddRefed<nsILoadInfo> GetLoadInfo()
132
39
  {
133
39
    nsCOMPtr<nsILoadInfo> result;
134
39
    mozilla::DebugOnly<nsresult> rv = GetLoadInfo(getter_AddRefs(result));
135
39
    MOZ_ASSERT(NS_SUCCEEDED(rv) || !result);
136
39
    return result.forget();
137
39
  }
138
};
139
140
  NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannel, NS_ICHANNEL_IID)
141
142
/* Use this macro when declaring classes that implement this interface. */
143
#define NS_DECL_NSICHANNEL \
144
  NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override; \
145
  NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override; \
146
  NS_IMETHOD GetURI(nsIURI **aURI) override; \
147
  NS_IMETHOD GetOwner(nsISupports **aOwner) override; \
148
  NS_IMETHOD SetOwner(nsISupports *aOwner) override; \
149
  NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override; \
150
  NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override; \
151
  NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override; \
152
  NS_IMETHOD GetContentType(nsACString& aContentType) override; \
153
  NS_IMETHOD SetContentType(const nsACString& aContentType) override; \
154
  NS_IMETHOD GetContentCharset(nsACString& aContentCharset) override; \
155
  NS_IMETHOD SetContentCharset(const nsACString& aContentCharset) override; \
156
  NS_IMETHOD GetContentLength(int64_t *aContentLength) override; \
157
  NS_IMETHOD SetContentLength(int64_t aContentLength) override; \
158
  NS_IMETHOD Open(nsIInputStream **_retval) override; \
159
  NS_IMETHOD Open2(nsIInputStream **_retval) override; \
160
  NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override; \
161
  NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override; \
162
  NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override; \
163
  NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override; \
164
  NS_IMETHOD GetContentDispositionFilename(nsAString& aContentDispositionFilename) override; \
165
  NS_IMETHOD SetContentDispositionFilename(const nsAString& aContentDispositionFilename) override; \
166
  NS_IMETHOD GetContentDispositionHeader(nsACString& aContentDispositionHeader) override; \
167
  NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override; \
168
  NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override; \
169
  NS_IMETHOD GetIsDocument(bool *aIsDocument) override; \
170
171
/* Use this macro when declaring the members of this interface when the
172
   class doesn't implement the interface. This is useful for forwarding. */
173
#define NS_DECL_NON_VIRTUAL_NSICHANNEL \
174
  nsresult GetOriginalURI(nsIURI **aOriginalURI); \
175
  nsresult SetOriginalURI(nsIURI *aOriginalURI); \
176
  nsresult GetURI(nsIURI **aURI); \
177
  nsresult GetOwner(nsISupports **aOwner); \
178
  nsresult SetOwner(nsISupports *aOwner); \
179
  nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks); \
180
  nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
181
  nsresult GetSecurityInfo(nsISupports **aSecurityInfo); \
182
  nsresult GetContentType(nsACString& aContentType); \
183
  nsresult SetContentType(const nsACString& aContentType); \
184
  nsresult GetContentCharset(nsACString& aContentCharset); \
185
  nsresult SetContentCharset(const nsACString& aContentCharset); \
186
  nsresult GetContentLength(int64_t *aContentLength); \
187
  nsresult SetContentLength(int64_t aContentLength); \
188
  nsresult Open(nsIInputStream **_retval); \
189
  nsresult Open2(nsIInputStream **_retval); \
190
  nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext); \
191
  nsresult AsyncOpen2(nsIStreamListener *aListener); \
192
  nsresult GetContentDisposition(uint32_t *aContentDisposition); \
193
  nsresult SetContentDisposition(uint32_t aContentDisposition); \
194
  nsresult GetContentDispositionFilename(nsAString& aContentDispositionFilename); \
195
  nsresult SetContentDispositionFilename(const nsAString& aContentDispositionFilename); \
196
  nsresult GetContentDispositionHeader(nsACString& aContentDispositionHeader); \
197
  nsresult GetLoadInfo(nsILoadInfo **aLoadInfo); \
198
  nsresult SetLoadInfo(nsILoadInfo *aLoadInfo); \
199
  nsresult GetIsDocument(bool *aIsDocument); \
200
201
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
202
#define NS_FORWARD_NSICHANNEL(_to) \
203
0
  NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override { return _to GetOriginalURI(aOriginalURI); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetOriginalURI(nsIURI**)
Unexecuted instantiation: nsIconChannel::GetOriginalURI(nsIURI**)
204
0
  NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override { return _to SetOriginalURI(aOriginalURI); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetOriginalURI(nsIURI*)
Unexecuted instantiation: nsIconChannel::SetOriginalURI(nsIURI*)
205
0
  NS_IMETHOD GetURI(nsIURI **aURI) override { return _to GetURI(aURI); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetURI(nsIURI**)
Unexecuted instantiation: nsIconChannel::GetURI(nsIURI**)
206
0
  NS_IMETHOD GetOwner(nsISupports **aOwner) override { return _to GetOwner(aOwner); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetOwner(nsISupports**)
Unexecuted instantiation: nsIconChannel::GetOwner(nsISupports**)
207
0
  NS_IMETHOD SetOwner(nsISupports *aOwner) override { return _to SetOwner(aOwner); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetOwner(nsISupports*)
Unexecuted instantiation: nsIconChannel::SetOwner(nsISupports*)
208
0
  NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetNotificationCallbacks(nsIInterfaceRequestor**)
Unexecuted instantiation: nsIconChannel::GetNotificationCallbacks(nsIInterfaceRequestor**)
209
0
  NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetNotificationCallbacks(nsIInterfaceRequestor*)
Unexecuted instantiation: nsIconChannel::SetNotificationCallbacks(nsIInterfaceRequestor*)
210
0
  NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override { return _to GetSecurityInfo(aSecurityInfo); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetSecurityInfo(nsISupports**)
Unexecuted instantiation: nsIconChannel::GetSecurityInfo(nsISupports**)
211
0
  NS_IMETHOD GetContentType(nsACString& aContentType) override { return _to GetContentType(aContentType); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentType(nsTSubstring<char>&)
Unexecuted instantiation: nsIconChannel::GetContentType(nsTSubstring<char>&)
212
0
  NS_IMETHOD SetContentType(const nsACString& aContentType) override { return _to SetContentType(aContentType); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetContentType(nsTSubstring<char> const&)
Unexecuted instantiation: nsIconChannel::SetContentType(nsTSubstring<char> const&)
213
0
  NS_IMETHOD GetContentCharset(nsACString& aContentCharset) override { return _to GetContentCharset(aContentCharset); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentCharset(nsTSubstring<char>&)
Unexecuted instantiation: nsIconChannel::GetContentCharset(nsTSubstring<char>&)
214
0
  NS_IMETHOD SetContentCharset(const nsACString& aContentCharset) override { return _to SetContentCharset(aContentCharset); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetContentCharset(nsTSubstring<char> const&)
Unexecuted instantiation: nsIconChannel::SetContentCharset(nsTSubstring<char> const&)
215
0
  NS_IMETHOD GetContentLength(int64_t *aContentLength) override { return _to GetContentLength(aContentLength); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentLength(long*)
Unexecuted instantiation: nsIconChannel::GetContentLength(long*)
216
0
  NS_IMETHOD SetContentLength(int64_t aContentLength) override { return _to SetContentLength(aContentLength); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetContentLength(long)
Unexecuted instantiation: nsIconChannel::SetContentLength(long)
217
0
  NS_IMETHOD Open(nsIInputStream **_retval) override { return _to Open(_retval); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::Open(nsIInputStream**)
Unexecuted instantiation: nsIconChannel::Open(nsIInputStream**)
218
0
  NS_IMETHOD Open2(nsIInputStream **_retval) override { return _to Open2(_retval); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::Open2(nsIInputStream**)
Unexecuted instantiation: nsIconChannel::Open2(nsIInputStream**)
219
0
  NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override { return _to AsyncOpen(aListener, aContext); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::AsyncOpen(nsIStreamListener*, nsISupports*)
Unexecuted instantiation: nsIconChannel::AsyncOpen(nsIStreamListener*, nsISupports*)
220
0
  NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override { return _to AsyncOpen2(aListener); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::AsyncOpen2(nsIStreamListener*)
Unexecuted instantiation: nsIconChannel::AsyncOpen2(nsIStreamListener*)
221
0
  NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override { return _to GetContentDisposition(aContentDisposition); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentDisposition(unsigned int*)
Unexecuted instantiation: nsIconChannel::GetContentDisposition(unsigned int*)
222
0
  NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override { return _to SetContentDisposition(aContentDisposition); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetContentDisposition(unsigned int)
Unexecuted instantiation: nsIconChannel::SetContentDisposition(unsigned int)
223
0
  NS_IMETHOD GetContentDispositionFilename(nsAString& aContentDispositionFilename) override { return _to GetContentDispositionFilename(aContentDispositionFilename); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentDispositionFilename(nsTSubstring<char16_t>&)
Unexecuted instantiation: nsIconChannel::GetContentDispositionFilename(nsTSubstring<char16_t>&)
224
0
  NS_IMETHOD SetContentDispositionFilename(const nsAString& aContentDispositionFilename) override { return _to SetContentDispositionFilename(aContentDispositionFilename); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetContentDispositionFilename(nsTSubstring<char16_t> const&)
Unexecuted instantiation: nsIconChannel::SetContentDispositionFilename(nsTSubstring<char16_t> const&)
225
0
  NS_IMETHOD GetContentDispositionHeader(nsACString& aContentDispositionHeader) override { return _to GetContentDispositionHeader(aContentDispositionHeader); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetContentDispositionHeader(nsTSubstring<char>&)
Unexecuted instantiation: nsIconChannel::GetContentDispositionHeader(nsTSubstring<char>&)
226
0
  NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override { return _to GetLoadInfo(aLoadInfo); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetLoadInfo(nsILoadInfo**)
Unexecuted instantiation: nsIconChannel::GetLoadInfo(nsILoadInfo**)
227
0
  NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return _to SetLoadInfo(aLoadInfo); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetLoadInfo(nsILoadInfo*)
Unexecuted instantiation: nsIconChannel::SetLoadInfo(nsILoadInfo*)
228
0
  NS_IMETHOD GetIsDocument(bool *aIsDocument) override { return _to GetIsDocument(aIsDocument); } \
Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetIsDocument(bool*)
Unexecuted instantiation: nsIconChannel::GetIsDocument(bool*)
229
230
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
231
#define NS_FORWARD_SAFE_NSICHANNEL(_to) \
232
0
  NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalURI(aOriginalURI); } \
233
0
  NS_IMETHOD SetOriginalURI(nsIURI *aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginalURI(aOriginalURI); } \
234
0
  NS_IMETHOD GetURI(nsIURI **aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
235
0
  NS_IMETHOD GetOwner(nsISupports **aOwner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwner(aOwner); } \
236
0
  NS_IMETHOD SetOwner(nsISupports *aOwner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwner(aOwner); } \
237
0
  NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
238
0
  NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
239
0
  NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
240
0
  NS_IMETHOD GetContentType(nsACString& aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
241
0
  NS_IMETHOD SetContentType(const nsACString& aContentType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
242
0
  NS_IMETHOD GetContentCharset(nsACString& aContentCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentCharset(aContentCharset); } \
243
0
  NS_IMETHOD SetContentCharset(const nsACString& aContentCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentCharset(aContentCharset); } \
244
0
  NS_IMETHOD GetContentLength(int64_t *aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentLength(aContentLength); } \
245
0
  NS_IMETHOD SetContentLength(int64_t aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentLength(aContentLength); } \
246
0
  NS_IMETHOD Open(nsIInputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(_retval); } \
247
0
  NS_IMETHOD Open2(nsIInputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Open2(_retval); } \
248
0
  NS_IMETHOD AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aListener, aContext); } \
249
0
  NS_IMETHOD AsyncOpen2(nsIStreamListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen2(aListener); } \
250
0
  NS_IMETHOD GetContentDisposition(uint32_t *aContentDisposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDisposition(aContentDisposition); } \
251
0
  NS_IMETHOD SetContentDisposition(uint32_t aContentDisposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentDisposition(aContentDisposition); } \
252
0
  NS_IMETHOD GetContentDispositionFilename(nsAString& aContentDispositionFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionFilename(aContentDispositionFilename); } \
253
0
  NS_IMETHOD SetContentDispositionFilename(const nsAString& aContentDispositionFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentDispositionFilename(aContentDispositionFilename); } \
254
0
  NS_IMETHOD GetContentDispositionHeader(nsACString& aContentDispositionHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentDispositionHeader(aContentDispositionHeader); } \
255
0
  NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadInfo(aLoadInfo); } \
256
0
  NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadInfo(aLoadInfo); } \
257
0
  NS_IMETHOD GetIsDocument(bool *aIsDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDocument(aIsDocument); } \
258
259
260
#endif /* __gen_nsIChannel_h__ */