/work/obj-fuzz/dist/include/nsISecurityEventSink.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsISecurityEventSink.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsISecurityEventSink_h__ |
6 | | #define __gen_nsISecurityEventSink_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 | | |
22 | | /* starting interface: nsISecurityEventSink */ |
23 | | #define NS_ISECURITYEVENTSINK_IID_STR "a71aee68-dd38-4736-bd79-035fea1a1ec6" |
24 | | |
25 | | #define NS_ISECURITYEVENTSINK_IID \ |
26 | | {0xa71aee68, 0xdd38, 0x4736, \ |
27 | | { 0xbd, 0x79, 0x03, 0x5f, 0xea, 0x1a, 0x1e, 0xc6 }} |
28 | | |
29 | | class NS_NO_VTABLE nsISecurityEventSink : public nsISupports { |
30 | | public: |
31 | | |
32 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECURITYEVENTSINK_IID) |
33 | | |
34 | | /* void onSecurityChange (in nsISupports i_Context, in unsigned long state); */ |
35 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSecurityChange(nsISupports *i_Context, uint32_t state) = 0; |
36 | | |
37 | | }; |
38 | | |
39 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsISecurityEventSink, NS_ISECURITYEVENTSINK_IID) |
40 | | |
41 | | /* Use this macro when declaring classes that implement this interface. */ |
42 | | #define NS_DECL_NSISECURITYEVENTSINK \ |
43 | | NS_IMETHOD OnSecurityChange(nsISupports *i_Context, uint32_t state) override; |
44 | | |
45 | | /* Use this macro when declaring the members of this interface when the |
46 | | class doesn't implement the interface. This is useful for forwarding. */ |
47 | | #define NS_DECL_NON_VIRTUAL_NSISECURITYEVENTSINK \ |
48 | | nsresult OnSecurityChange(nsISupports *i_Context, uint32_t state); |
49 | | |
50 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
51 | | #define NS_FORWARD_NSISECURITYEVENTSINK(_to) \ |
52 | 0 | NS_IMETHOD OnSecurityChange(nsISupports *i_Context, uint32_t state) override { return _to OnSecurityChange(i_Context, state); } Unexecuted instantiation: nsExternalResourceMap::LoadgroupCallbacks::nsISecurityEventSinkShim::OnSecurityChange(nsISupports*, unsigned int) Unexecuted instantiation: nsDocShell::OnSecurityChange(nsISupports*, unsigned int) |
53 | | |
54 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
55 | | #define NS_FORWARD_SAFE_NSISECURITYEVENTSINK(_to) \ |
56 | | NS_IMETHOD OnSecurityChange(nsISupports *i_Context, uint32_t state) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSecurityChange(i_Context, state); } |
57 | | |
58 | | |
59 | | #endif /* __gen_nsISecurityEventSink_h__ */ |