Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIChannel; /* forward declaration */
18 :
19 : class nsIURI; /* forward declaration */
20 :
21 : class nsIProxyInfo; /* forward declaration */
22 :
23 : class nsILoadInfo; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIProxiedProtocolHandler */
27 : #define NS_IPROXIEDPROTOCOLHANDLER_IID_STR "3756047a-fa2b-4b45-9948-3b5f8fc375e7"
28 :
29 : #define NS_IPROXIEDPROTOCOLHANDLER_IID \
30 : {0x3756047a, 0xfa2b, 0x4b45, \
31 : { 0x99, 0x48, 0x3b, 0x5f, 0x8f, 0xc3, 0x75, 0xe7 }}
32 :
33 3 : class NS_NO_VTABLE nsIProxiedProtocolHandler : public nsIProtocolHandler {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROXIEDPROTOCOLHANDLER_IID)
37 :
38 : /* nsIChannel newProxiedChannel2 (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI, in nsILoadInfo aLoadInfo); */
39 : NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel * *_retval) = 0;
40 :
41 : /* nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI); */
42 : NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel * *_retval) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProxiedProtocolHandler, NS_IPROXIEDPROTOCOLHANDLER_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIPROXIEDPROTOCOLHANDLER \
50 : NS_IMETHOD NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel * *_retval) override; \
51 : NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel * *_retval) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSIPROXIEDPROTOCOLHANDLER \
56 : nsresult NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel * *_retval); \
57 : nsresult NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel * *_retval);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIPROXIEDPROTOCOLHANDLER(_to) \
61 : 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); } \
62 : NS_IMETHOD NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel * *_retval) override { return _to NewProxiedChannel(uri, proxyInfo, proxyResolveFlags, proxyURI, _retval); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIPROXIEDPROTOCOLHANDLER(_to) \
66 : 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); } \
67 : 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); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsProxiedProtocolHandler : public nsIProxiedProtocolHandler
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIPROXIEDPROTOCOLHANDLER
78 :
79 : nsProxiedProtocolHandler();
80 :
81 : private:
82 : ~nsProxiedProtocolHandler();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS(nsProxiedProtocolHandler, nsIProxiedProtocolHandler)
90 :
91 : nsProxiedProtocolHandler::nsProxiedProtocolHandler()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsProxiedProtocolHandler::~nsProxiedProtocolHandler()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* nsIChannel newProxiedChannel2 (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI, in nsILoadInfo aLoadInfo); */
102 : NS_IMETHODIMP nsProxiedProtocolHandler::NewProxiedChannel2(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsILoadInfo *aLoadInfo, nsIChannel * *_retval)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* nsIChannel newProxiedChannel (in nsIURI uri, in nsIProxyInfo proxyInfo, in unsigned long proxyResolveFlags, in nsIURI proxyURI); */
108 : NS_IMETHODIMP nsProxiedProtocolHandler::NewProxiedChannel(nsIURI *uri, nsIProxyInfo *proxyInfo, uint32_t proxyResolveFlags, nsIURI *proxyURI, nsIChannel * *_retval)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* End of implementation class template. */
114 : #endif
115 :
116 :
117 : #endif /* __gen_nsIProxiedProtocolHandler_h__ */
|