/work/obj-fuzz/dist/include/nsIUploadChannel.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIUploadChannel.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIUploadChannel_h__ |
6 | | #define __gen_nsIUploadChannel_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 | | |
22 | | /* starting interface: nsIUploadChannel */ |
23 | | #define NS_IUPLOADCHANNEL_IID_STR "5cfe15bd-5adb-4a7f-9e55-4f5a67d15794" |
24 | | |
25 | | #define NS_IUPLOADCHANNEL_IID \ |
26 | | {0x5cfe15bd, 0x5adb, 0x4a7f, \ |
27 | | { 0x9e, 0x55, 0x4f, 0x5a, 0x67, 0xd1, 0x57, 0x94 }} |
28 | | |
29 | | class NS_NO_VTABLE nsIUploadChannel : public nsISupports { |
30 | | public: |
31 | | |
32 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPLOADCHANNEL_IID) |
33 | | |
34 | | /* void setUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength); */ |
35 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength) = 0; |
36 | | |
37 | | /* readonly attribute nsIInputStream uploadStream; */ |
38 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUploadStream(nsIInputStream **aUploadStream) = 0; |
39 | | |
40 | | }; |
41 | | |
42 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIUploadChannel, NS_IUPLOADCHANNEL_IID) |
43 | | |
44 | | /* Use this macro when declaring classes that implement this interface. */ |
45 | | #define NS_DECL_NSIUPLOADCHANNEL \ |
46 | | NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength) override; \ |
47 | | NS_IMETHOD GetUploadStream(nsIInputStream **aUploadStream) override; |
48 | | |
49 | | /* Use this macro when declaring the members of this interface when the |
50 | | class doesn't implement the interface. This is useful for forwarding. */ |
51 | | #define NS_DECL_NON_VIRTUAL_NSIUPLOADCHANNEL \ |
52 | | nsresult SetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength); \ |
53 | | nsresult GetUploadStream(nsIInputStream **aUploadStream); |
54 | | |
55 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
56 | | #define NS_FORWARD_NSIUPLOADCHANNEL(_to) \ |
57 | 0 | NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength) override { return _to SetUploadStream(aStream, aContentType, aContentLength); } \ |
58 | 0 | NS_IMETHOD GetUploadStream(nsIInputStream **aUploadStream) override { return _to GetUploadStream(aUploadStream); } |
59 | | |
60 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
61 | | #define NS_FORWARD_SAFE_NSIUPLOADCHANNEL(_to) \ |
62 | 0 | NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString& aContentType, int64_t aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUploadStream(aStream, aContentType, aContentLength); } \ |
63 | 0 | NS_IMETHOD GetUploadStream(nsIInputStream **aUploadStream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUploadStream(aUploadStream); } |
64 | | |
65 | | |
66 | | #endif /* __gen_nsIUploadChannel_h__ */ |