1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/about/nsIAboutModule.idl
3 : */
4 :
5 : #ifndef __gen_nsIAboutModule_h__
6 : #define __gen_nsIAboutModule_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 nsIURI; /* forward declaration */
18 :
19 : class nsIChannel; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIAboutModule */
23 : #define NS_IABOUTMODULE_IID_STR "9575693c-60d9-4332-b6b8-6c29289339cb"
24 :
25 : #define NS_IABOUTMODULE_IID \
26 : {0x9575693c, 0x60d9, 0x4332, \
27 : { 0xb6, 0xb8, 0x6c, 0x29, 0x28, 0x93, 0x39, 0xcb }}
28 :
29 105 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAboutModule : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABOUTMODULE_IID)
33 :
34 : /* nsIChannel newChannel (in nsIURI aURI); */
35 : NS_SCRIPTABLE NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel * *_retval NS_OUTPARAM) = 0;
36 :
37 : enum {
38 : URI_SAFE_FOR_UNTRUSTED_CONTENT = 1U,
39 : ALLOW_SCRIPT = 2U,
40 : HIDE_FROM_ABOUTABOUT = 4U
41 : };
42 :
43 : /* unsigned long getURIFlags (in nsIURI aURI); */
44 : NS_SCRIPTABLE NS_IMETHOD GetURIFlags(nsIURI *aURI, PRUint32 *_retval NS_OUTPARAM) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAboutModule, NS_IABOUTMODULE_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIABOUTMODULE \
52 : NS_SCRIPTABLE NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel * *_retval NS_OUTPARAM); \
53 : NS_SCRIPTABLE NS_IMETHOD GetURIFlags(nsIURI *aURI, PRUint32 *_retval NS_OUTPARAM);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIABOUTMODULE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel * *_retval NS_OUTPARAM) { return _to NewChannel(aURI, _retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetURIFlags(nsIURI *aURI, PRUint32 *_retval NS_OUTPARAM) { return _to GetURIFlags(aURI, _retval); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIABOUTMODULE(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewChannel(aURI, _retval); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetURIFlags(nsIURI *aURI, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIFlags(aURI, _retval); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsAboutModule : public nsIAboutModule
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSIABOUTMODULE
74 :
75 : nsAboutModule();
76 :
77 : private:
78 : ~nsAboutModule();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS1(nsAboutModule, nsIAboutModule)
86 :
87 : nsAboutModule::nsAboutModule()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsAboutModule::~nsAboutModule()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* nsIChannel newChannel (in nsIURI aURI); */
98 : NS_IMETHODIMP nsAboutModule::NewChannel(nsIURI *aURI, nsIChannel * *_retval NS_OUTPARAM)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* unsigned long getURIFlags (in nsIURI aURI); */
104 : NS_IMETHODIMP nsAboutModule::GetURIFlags(nsIURI *aURI, PRUint32 *_retval NS_OUTPARAM)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : #define NS_ABOUT_MODULE_CONTRACTID "@mozilla.org/network/protocol/about;1"
114 : #define NS_ABOUT_MODULE_CONTRACTID_PREFIX NS_ABOUT_MODULE_CONTRACTID "?what="
115 : #define NS_ABOUT_MODULE_CONTRACTID_LENGTH 49 // nsCRT::strlen(NS_ABOUT_MODULE_CONTRACTID_PREFIX)
116 :
117 : #endif /* __gen_nsIAboutModule_h__ */
|