/work/obj-fuzz/dist/include/nsIProxiedProtocolHandler.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIProxiedProtocolHandler.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIProxiedProtocolHandler_h__ |
6 | | #define __gen_nsIProxiedProtocolHandler_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 nsIChannel; /* forward declaration */ |
20 | | |
21 | | class nsIURI; /* forward declaration */ |
22 | | |
23 | | class nsIProxyInfo; /* forward declaration */ |
24 | | |
25 | | class nsILoadInfo; /* forward declaration */ |
26 | | |
27 | | |
28 | | /* starting interface: nsIProxiedProtocolHandler */ |
29 | | #define NS_IPROXIEDPROTOCOLHANDLER_IID_STR "3756047a-fa2b-4b45-9948-3b5f8fc375e7" |
30 | | |
31 | | #define NS_IPROXIEDPROTOCOLHANDLER_IID \ |
32 | | {0x3756047a, 0xfa2b, 0x4b45, \ |
33 | | { 0x99, 0x48, 0x3b, 0x5f, 0x8f, 0xc3, 0x75, 0xe7 }} |
34 | | |
35 | | class NS_NO_VTABLE nsIProxiedProtocolHandler : public nsIProtocolHandler { |
36 | | public: |
37 | | |
38 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROXIEDPROTOCOLHANDLER_IID) |
39 | | |
40 | | /* nsIChannel newProxiedChannel2 (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI, in nsILoadInfo aLoadInfo); */ |
41 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval) = 0; |
42 | | |
43 | | /* nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI); */ |
44 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel **_retval) = 0; |
45 | | |
46 | | }; |
47 | | |
48 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIProxiedProtocolHandler, NS_IPROXIEDPROTOCOLHANDLER_IID) |
49 | | |
50 | | /* Use this macro when declaring classes that implement this interface. */ |
51 | | #define NS_DECL_NSIPROXIEDPROTOCOLHANDLER \ |
52 | | NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval) override; \ |
53 | | NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel **_retval) override; |
54 | | |
55 | | /* Use this macro when declaring the members of this interface when the |
56 | | class doesn't implement the interface. This is useful for forwarding. */ |
57 | | #define NS_DECL_NON_VIRTUAL_NSIPROXIEDPROTOCOLHANDLER \ |
58 | | nsresult NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval); \ |
59 | | nsresult NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel **_retval); |
60 | | |
61 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
62 | | #define NS_FORWARD_NSIPROXIEDPROTOCOLHANDLER(_to) \ |
63 | 0 | NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval) override { return _to NewProxiedChannel2(uri, proxyInfo, proxyResolveFlags, proxyURI, aLoadInfo, _retval); } \ |
64 | 0 | NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel **_retval) override { return _to NewProxiedChannel(uri, proxyInfo, proxyResolveFlags, proxyURI, _retval); } |
65 | | |
66 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
67 | | #define NS_FORWARD_SAFE_NSIPROXIEDPROTOCOLHANDLER(_to) \ |
68 | | NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewProxiedChannel2(uri, proxyInfo, proxyResolveFlags, proxyURI, aLoadInfo, _retval); } \ |
69 | | NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewProxiedChannel(uri, proxyInfo, proxyResolveFlags, proxyURI, _retval); } |
70 | | |
71 | | |
72 | | #endif /* __gen_nsIProxiedProtocolHandler_h__ */ |