/work/obj-fuzz/dist/include/nsIProgressEventSink.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIProgressEventSink.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIProgressEventSink_h__ |
6 | | #define __gen_nsIProgressEventSink_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 nsIURI; /* forward declaration */ |
20 | | |
21 | | class nsIRequest; /* forward declaration */ |
22 | | |
23 | | |
24 | | /* starting interface: nsIProgressEventSink */ |
25 | | #define NS_IPROGRESSEVENTSINK_IID_STR "87d55fba-cb7e-4f38-84c1-5c6c2b2a55e9" |
26 | | |
27 | | #define NS_IPROGRESSEVENTSINK_IID \ |
28 | | {0x87d55fba, 0xcb7e, 0x4f38, \ |
29 | | { 0x84, 0xc1, 0x5c, 0x6c, 0x2b, 0x2a, 0x55, 0xe9 }} |
30 | | |
31 | | class NS_NO_VTABLE nsIProgressEventSink : public nsISupports { |
32 | | public: |
33 | | |
34 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROGRESSEVENTSINK_IID) |
35 | | |
36 | | /* void onProgress (in nsIRequest aRequest, in nsISupports aContext, in long long aProgress, in long long aProgressMax); */ |
37 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) = 0; |
38 | | |
39 | | /* void onStatus (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); */ |
40 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) = 0; |
41 | | |
42 | | }; |
43 | | |
44 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIProgressEventSink, NS_IPROGRESSEVENTSINK_IID) |
45 | | |
46 | | /* Use this macro when declaring classes that implement this interface. */ |
47 | | #define NS_DECL_NSIPROGRESSEVENTSINK \ |
48 | | NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override; \ |
49 | | NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override; |
50 | | |
51 | | /* Use this macro when declaring the members of this interface when the |
52 | | class doesn't implement the interface. This is useful for forwarding. */ |
53 | | #define NS_DECL_NON_VIRTUAL_NSIPROGRESSEVENTSINK \ |
54 | | nsresult OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax); \ |
55 | | nsresult OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg); |
56 | | |
57 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
58 | | #define NS_FORWARD_NSIPROGRESSEVENTSINK(_to) \ |
59 | 0 | NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override { return _to OnProgress(aRequest, aContext, aProgress, aProgressMax); } \ Unexecuted instantiation: nsExternalResourceMap::LoadgroupCallbacks::nsIProgressEventSinkShim::OnProgress(nsIRequest*, nsISupports*, long, long) Unexecuted instantiation: mozilla::dom::nsXMLHttpRequestXPCOMifier::OnProgress(nsIRequest*, nsISupports*, long, long) |
60 | 0 | NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override { return _to OnStatus(aRequest, aContext, aStatus, aStatusArg); } Unexecuted instantiation: nsExternalResourceMap::LoadgroupCallbacks::nsIProgressEventSinkShim::OnStatus(nsIRequest*, nsISupports*, nsresult, char16_t const*) Unexecuted instantiation: mozilla::dom::nsXMLHttpRequestXPCOMifier::OnStatus(nsIRequest*, nsISupports*, nsresult, char16_t const*) |
61 | | |
62 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
63 | | #define NS_FORWARD_SAFE_NSIPROGRESSEVENTSINK(_to) \ |
64 | | NS_IMETHOD OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnProgress(aRequest, aContext, aProgress, aProgressMax); } \ |
65 | | NS_IMETHOD OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t * aStatusArg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStatus(aRequest, aContext, aStatus, aStatusArg); } |
66 | | |
67 | | |
68 | | #endif /* __gen_nsIProgressEventSink_h__ */ |