Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIChildChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIChildChannel_h__
6 : #define __gen_nsIChildChannel_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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 nsIStreamListener; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIChildChannel */
21 : #define NS_ICHILDCHANNEL_IID_STR "c45b92ae-4f07-41dd-b0ef-aa044eeabb1e"
22 :
23 : #define NS_ICHILDCHANNEL_IID \
24 : {0xc45b92ae, 0x4f07, 0x41dd, \
25 : { 0xb0, 0xef, 0xaa, 0x04, 0x4e, 0xea, 0xbb, 0x1e }}
26 :
27 286 : class NS_NO_VTABLE nsIChildChannel : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHILDCHANNEL_IID)
31 :
32 : /* void connectParent (in uint32_t registrarId); */
33 : NS_IMETHOD ConnectParent(uint32_t registrarId) = 0;
34 :
35 : /* void completeRedirectSetup (in nsIStreamListener aListener, in nsISupports aContext); */
36 : NS_IMETHOD CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIChildChannel, NS_ICHILDCHANNEL_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSICHILDCHANNEL \
44 : NS_IMETHOD ConnectParent(uint32_t registrarId) override; \
45 : NS_IMETHOD CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSICHILDCHANNEL \
50 : nsresult ConnectParent(uint32_t registrarId); \
51 : nsresult CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSICHILDCHANNEL(_to) \
55 : NS_IMETHOD ConnectParent(uint32_t registrarId) override { return _to ConnectParent(registrarId); } \
56 : NS_IMETHOD CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext) override { return _to CompleteRedirectSetup(aListener, aContext); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSICHILDCHANNEL(_to) \
60 : NS_IMETHOD ConnectParent(uint32_t registrarId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConnectParent(registrarId); } \
61 : NS_IMETHOD CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompleteRedirectSetup(aListener, aContext); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsChildChannel : public nsIChildChannel
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSICHILDCHANNEL
72 :
73 : nsChildChannel();
74 :
75 : private:
76 : ~nsChildChannel();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsChildChannel, nsIChildChannel)
84 :
85 : nsChildChannel::nsChildChannel()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsChildChannel::~nsChildChannel()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void connectParent (in uint32_t registrarId); */
96 : NS_IMETHODIMP nsChildChannel::ConnectParent(uint32_t registrarId)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* void completeRedirectSetup (in nsIStreamListener aListener, in nsISupports aContext); */
102 : NS_IMETHODIMP nsChildChannel::CompleteRedirectSetup(nsIStreamListener *aListener, nsISupports *aContext)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIChildChannel_h__ */
|