1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIParentRedirectingChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIParentRedirectingChannel_h__
6 : #define __gen_nsIParentRedirectingChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIParentChannel_h__
10 : #include "nsIParentChannel.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 nsITabParent; /* forward declaration */
18 :
19 : class nsIChannel; /* forward declaration */
20 :
21 : class nsIAsyncVerifyRedirectCallback; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIParentRedirectingChannel */
25 : #define NS_IPARENTREDIRECTINGCHANNEL_IID_STR "cb7edc1c-096f-44de-957c-cb93de1545f6"
26 :
27 : #define NS_IPARENTREDIRECTINGCHANNEL_IID \
28 : {0xcb7edc1c, 0x096f, 0x44de, \
29 : { 0x95, 0x7c, 0xcb, 0x93, 0xde, 0x15, 0x45, 0xf6 }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIParentRedirectingChannel : public nsIParentChannel {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARENTREDIRECTINGCHANNEL_IID)
35 :
36 : /* void startRedirect (in PRUint32 newChannelId, in nsIChannel newChannel, in PRUint32 redirectFlags, in nsIAsyncVerifyRedirectCallback callback); */
37 : NS_SCRIPTABLE NS_IMETHOD StartRedirect(PRUint32 newChannelId, nsIChannel *newChannel, PRUint32 redirectFlags, nsIAsyncVerifyRedirectCallback *callback) = 0;
38 :
39 : /* void completeRedirect (in boolean succeeded); */
40 : NS_SCRIPTABLE NS_IMETHOD CompleteRedirect(bool succeeded) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIParentRedirectingChannel, NS_IPARENTREDIRECTINGCHANNEL_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIPARENTREDIRECTINGCHANNEL \
48 : NS_SCRIPTABLE NS_IMETHOD StartRedirect(PRUint32 newChannelId, nsIChannel *newChannel, PRUint32 redirectFlags, nsIAsyncVerifyRedirectCallback *callback); \
49 : NS_SCRIPTABLE NS_IMETHOD CompleteRedirect(bool succeeded);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIPARENTREDIRECTINGCHANNEL(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD StartRedirect(PRUint32 newChannelId, nsIChannel *newChannel, PRUint32 redirectFlags, nsIAsyncVerifyRedirectCallback *callback) { return _to StartRedirect(newChannelId, newChannel, redirectFlags, callback); } \
54 : NS_SCRIPTABLE NS_IMETHOD CompleteRedirect(bool succeeded) { return _to CompleteRedirect(succeeded); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIPARENTREDIRECTINGCHANNEL(_to) \
58 : NS_SCRIPTABLE NS_IMETHOD StartRedirect(PRUint32 newChannelId, nsIChannel *newChannel, PRUint32 redirectFlags, nsIAsyncVerifyRedirectCallback *callback) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartRedirect(newChannelId, newChannel, redirectFlags, callback); } \
59 : NS_SCRIPTABLE NS_IMETHOD CompleteRedirect(bool succeeded) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompleteRedirect(succeeded); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsParentRedirectingChannel : public nsIParentRedirectingChannel
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIPARENTREDIRECTINGCHANNEL
70 :
71 : nsParentRedirectingChannel();
72 :
73 : private:
74 : ~nsParentRedirectingChannel();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS1(nsParentRedirectingChannel, nsIParentRedirectingChannel)
82 :
83 : nsParentRedirectingChannel::nsParentRedirectingChannel()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsParentRedirectingChannel::~nsParentRedirectingChannel()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void startRedirect (in PRUint32 newChannelId, in nsIChannel newChannel, in PRUint32 redirectFlags, in nsIAsyncVerifyRedirectCallback callback); */
94 : NS_IMETHODIMP nsParentRedirectingChannel::StartRedirect(PRUint32 newChannelId, nsIChannel *newChannel, PRUint32 redirectFlags, nsIAsyncVerifyRedirectCallback *callback)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* void completeRedirect (in boolean succeeded); */
100 : NS_IMETHODIMP nsParentRedirectingChannel::CompleteRedirect(bool succeeded)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : #endif /* __gen_nsIParentRedirectingChannel_h__ */
|