/work/obj-fuzz/dist/include/nsISubstitutingProtocolHandler.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/protocol/res/nsISubstitutingProtocolHandler.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsISubstitutingProtocolHandler_h__ |
6 | | #define __gen_nsISubstitutingProtocolHandler_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsIProtocolHandler_h__ |
10 | | #include "nsIProtocolHandler.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 nsISubstitutionObserver; /* forward declaration */ |
20 | | |
21 | | |
22 | | /* starting interface: nsISubstitutingProtocolHandler */ |
23 | | #define NS_ISUBSTITUTINGPROTOCOLHANDLER_IID_STR "154c64fd-a69e-4105-89f8-bd7dfe621372" |
24 | | |
25 | | #define NS_ISUBSTITUTINGPROTOCOLHANDLER_IID \ |
26 | | {0x154c64fd, 0xa69e, 0x4105, \ |
27 | | { 0x89, 0xf8, 0xbd, 0x7d, 0xfe, 0x62, 0x13, 0x72 }} |
28 | | |
29 | | class NS_NO_VTABLE nsISubstitutingProtocolHandler : public nsIProtocolHandler { |
30 | | public: |
31 | | |
32 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISUBSTITUTINGPROTOCOLHANDLER_IID) |
33 | | |
34 | | enum { |
35 | | ALLOW_CONTENT_ACCESS = 1 |
36 | | }; |
37 | | |
38 | | /* [must_use] void setSubstitution (in ACString root, in nsIURI baseURI); */ |
39 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString& root, nsIURI *baseURI) = 0; |
40 | | |
41 | | /* [must_use] void setSubstitutionWithFlags (in ACString root, in nsIURI baseURI, in uint32_t flags); */ |
42 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetSubstitutionWithFlags(const nsACString& root, nsIURI *baseURI, uint32_t flags) = 0; |
43 | | |
44 | | /* [must_use] nsIURI getSubstitution (in ACString root); */ |
45 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString& root, nsIURI **_retval) = 0; |
46 | | |
47 | | /* [must_use] boolean hasSubstitution (in ACString root); */ |
48 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString& root, bool *_retval) = 0; |
49 | | |
50 | | /* [must_use] AUTF8String resolveURI (in nsIURI resURI); */ |
51 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString& _retval) = 0; |
52 | | |
53 | | /* [must_use] void addObserver (in nsISubstitutionObserver observer); */ |
54 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) = 0; |
55 | | |
56 | | /* [must_use] void removeObserver (in nsISubstitutionObserver observer); */ |
57 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) = 0; |
58 | | |
59 | | }; |
60 | | |
61 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsISubstitutingProtocolHandler, NS_ISUBSTITUTINGPROTOCOLHANDLER_IID) |
62 | | |
63 | | /* Use this macro when declaring classes that implement this interface. */ |
64 | | #define NS_DECL_NSISUBSTITUTINGPROTOCOLHANDLER \ |
65 | | MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString& root, nsIURI *baseURI) override; \ |
66 | | MOZ_MUST_USE NS_IMETHOD SetSubstitutionWithFlags(const nsACString& root, nsIURI *baseURI, uint32_t flags) override; \ |
67 | | MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString& root, nsIURI **_retval) override; \ |
68 | | MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString& root, bool *_retval) override; \ |
69 | | MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString& _retval) override; \ |
70 | | MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override; \ |
71 | | MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override; |
72 | | |
73 | | /* Use this macro when declaring the members of this interface when the |
74 | | class doesn't implement the interface. This is useful for forwarding. */ |
75 | | #define NS_DECL_NON_VIRTUAL_NSISUBSTITUTINGPROTOCOLHANDLER \ |
76 | | MOZ_MUST_USE nsresult SetSubstitution(const nsACString& root, nsIURI *baseURI); \ |
77 | | MOZ_MUST_USE nsresult SetSubstitutionWithFlags(const nsACString& root, nsIURI *baseURI, uint32_t flags); \ |
78 | | MOZ_MUST_USE nsresult GetSubstitution(const nsACString& root, nsIURI **_retval); \ |
79 | | MOZ_MUST_USE nsresult HasSubstitution(const nsACString& root, bool *_retval); \ |
80 | | MOZ_MUST_USE nsresult ResolveURI(nsIURI *resURI, nsACString& _retval); \ |
81 | | MOZ_MUST_USE nsresult AddObserver(nsISubstitutionObserver *observer); \ |
82 | | MOZ_MUST_USE nsresult RemoveObserver(nsISubstitutionObserver *observer); |
83 | | |
84 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
85 | | #define NS_FORWARD_NSISUBSTITUTINGPROTOCOLHANDLER(_to) \ |
86 | 0 | MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString& root, nsIURI *baseURI) override { return _to SetSubstitution(root, baseURI); } \ |
87 | 0 | MOZ_MUST_USE NS_IMETHOD SetSubstitutionWithFlags(const nsACString& root, nsIURI *baseURI, uint32_t flags) override { return _to SetSubstitutionWithFlags(root, baseURI, flags); } \ |
88 | 0 | MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString& root, nsIURI **_retval) override { return _to GetSubstitution(root, _retval); } \ |
89 | 0 | MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString& root, bool *_retval) override { return _to HasSubstitution(root, _retval); } \ |
90 | 0 | MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString& _retval) override { return _to ResolveURI(resURI, _retval); } \ |
91 | 0 | MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override { return _to AddObserver(observer); } \ |
92 | 0 | MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override { return _to RemoveObserver(observer); } |
93 | | |
94 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
95 | | #define NS_FORWARD_SAFE_NSISUBSTITUTINGPROTOCOLHANDLER(_to) \ |
96 | | MOZ_MUST_USE NS_IMETHOD SetSubstitution(const nsACString& root, nsIURI *baseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubstitution(root, baseURI); } \ |
97 | | MOZ_MUST_USE NS_IMETHOD SetSubstitutionWithFlags(const nsACString& root, nsIURI *baseURI, uint32_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubstitutionWithFlags(root, baseURI, flags); } \ |
98 | | MOZ_MUST_USE NS_IMETHOD GetSubstitution(const nsACString& root, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubstitution(root, _retval); } \ |
99 | | MOZ_MUST_USE NS_IMETHOD HasSubstitution(const nsACString& root, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasSubstitution(root, _retval); } \ |
100 | | MOZ_MUST_USE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolveURI(resURI, _retval); } \ |
101 | | MOZ_MUST_USE NS_IMETHOD AddObserver(nsISubstitutionObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer); } \ |
102 | | MOZ_MUST_USE NS_IMETHOD RemoveObserver(nsISubstitutionObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } |
103 | | |
104 | | |
105 | | #endif /* __gen_nsISubstitutingProtocolHandler_h__ */ |