/work/obj-fuzz/dist/include/nsIUploadChannel2.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIUploadChannel2.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIUploadChannel2_h__ |
6 | | #define __gen_nsIUploadChannel2_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #include "js/GCAnnotations.h" |
14 | | |
15 | | /* For IDL files that don't want to include root IDL files. */ |
16 | | #ifndef NS_NO_VTABLE |
17 | | #define NS_NO_VTABLE |
18 | | #endif |
19 | | class nsIInputStream; /* forward declaration */ |
20 | | |
21 | | class nsIRunnable; /* forward declaration */ |
22 | | |
23 | | |
24 | | /* starting interface: nsIUploadChannel2 */ |
25 | | #define NS_IUPLOADCHANNEL2_IID_STR "2f712b52-19c5-4e0c-9e8f-b5c7c3b67049" |
26 | | |
27 | | #define NS_IUPLOADCHANNEL2_IID \ |
28 | | {0x2f712b52, 0x19c5, 0x4e0c, \ |
29 | | { 0x9e, 0x8f, 0xb5, 0xc7, 0xc3, 0xb6, 0x70, 0x49 }} |
30 | | |
31 | | class NS_NO_VTABLE nsIUploadChannel2 : public nsISupports { |
32 | | public: |
33 | | |
34 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPLOADCHANNEL2_IID) |
35 | | |
36 | | /* void explicitSetUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength, in ACString aMethod, in boolean aStreamHasHeaders); */ |
37 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength, const nsACString& aMethod, bool aStreamHasHeaders) = 0; |
38 | | |
39 | | /* readonly attribute boolean uploadStreamHasHeaders; */ |
40 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) = 0; |
41 | | |
42 | | /* [noscript] void ensureUploadStreamIsCloneable (in nsIRunnable aCallback); */ |
43 | | NS_IMETHOD EnsureUploadStreamIsCloneable(nsIRunnable *aCallback) = 0; |
44 | | |
45 | | /* [noscript] nsIInputStream cloneUploadStream (out long long aContentLength); */ |
46 | | NS_IMETHOD CloneUploadStream(int64_t *aContentLength, nsIInputStream **_retval) = 0; |
47 | | |
48 | | }; |
49 | | |
50 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIUploadChannel2, NS_IUPLOADCHANNEL2_IID) |
51 | | |
52 | | /* Use this macro when declaring classes that implement this interface. */ |
53 | | #define NS_DECL_NSIUPLOADCHANNEL2 \ |
54 | | NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength, const nsACString& aMethod, bool aStreamHasHeaders) override; \ |
55 | | NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) override; \ |
56 | | NS_IMETHOD EnsureUploadStreamIsCloneable(nsIRunnable *aCallback) override; \ |
57 | | NS_IMETHOD CloneUploadStream(int64_t *aContentLength, nsIInputStream **_retval) override; |
58 | | |
59 | | /* Use this macro when declaring the members of this interface when the |
60 | | class doesn't implement the interface. This is useful for forwarding. */ |
61 | | #define NS_DECL_NON_VIRTUAL_NSIUPLOADCHANNEL2 \ |
62 | | nsresult ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength, const nsACString& aMethod, bool aStreamHasHeaders); \ |
63 | | nsresult GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders); \ |
64 | | nsresult EnsureUploadStreamIsCloneable(nsIRunnable *aCallback); \ |
65 | | nsresult CloneUploadStream(int64_t *aContentLength, nsIInputStream **_retval); |
66 | | |
67 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
68 | | #define NS_FORWARD_NSIUPLOADCHANNEL2(_to) \ |
69 | 0 | NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength, const nsACString& aMethod, bool aStreamHasHeaders) override { return _to ExplicitSetUploadStream(aStream, aContentType, aContentLength, aMethod, aStreamHasHeaders); } \ |
70 | 0 | NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) override { return _to GetUploadStreamHasHeaders(aUploadStreamHasHeaders); } \ |
71 | 0 | NS_IMETHOD EnsureUploadStreamIsCloneable(nsIRunnable *aCallback) override { return _to EnsureUploadStreamIsCloneable(aCallback); } \ |
72 | 0 | NS_IMETHOD CloneUploadStream(int64_t *aContentLength, nsIInputStream **_retval) override { return _to CloneUploadStream(aContentLength, _retval); } |
73 | | |
74 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
75 | | #define NS_FORWARD_SAFE_NSIUPLOADCHANNEL2(_to) \ |
76 | | NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength, const nsACString& aMethod, bool aStreamHasHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExplicitSetUploadStream(aStream, aContentType, aContentLength, aMethod, aStreamHasHeaders); } \ |
77 | | NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUploadStreamHasHeaders(aUploadStreamHasHeaders); } \ |
78 | | NS_IMETHOD EnsureUploadStreamIsCloneable(nsIRunnable *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureUploadStreamIsCloneable(aCallback); } \ |
79 | | NS_IMETHOD CloneUploadStream(int64_t *aContentLength, nsIInputStream **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneUploadStream(aContentLength, _retval); } |
80 | | |
81 | | |
82 | | #endif /* __gen_nsIUploadChannel2_h__ */ |