1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/protocol/res/nsIResProtocolHandler.idl
3 : */
4 :
5 : #ifndef __gen_nsIResProtocolHandler_h__
6 : #define __gen_nsIResProtocolHandler_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 :
18 : /* starting interface: nsIResProtocolHandler */
19 : #define NS_IRESPROTOCOLHANDLER_IID_STR "067ca872-e947-4bd6-8946-a479cb6ba5dd"
20 :
21 : #define NS_IRESPROTOCOLHANDLER_IID \
22 : {0x067ca872, 0xe947, 0x4bd6, \
23 : { 0x89, 0x46, 0xa4, 0x79, 0xcb, 0x6b, 0xa5, 0xdd }}
24 :
25 1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIResProtocolHandler : public nsIProtocolHandler {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRESPROTOCOLHANDLER_IID)
29 :
30 : /* void setSubstitution (in ACString root, in nsIURI baseURI); */
31 : NS_SCRIPTABLE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) = 0;
32 :
33 : /* nsIURI getSubstitution (in ACString root); */
34 : NS_SCRIPTABLE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval NS_OUTPARAM) = 0;
35 :
36 : /* boolean hasSubstitution (in ACString root); */
37 : NS_SCRIPTABLE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval NS_OUTPARAM) = 0;
38 :
39 : /* AUTF8String resolveURI (in nsIURI resURI); */
40 : NS_SCRIPTABLE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval NS_OUTPARAM) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIResProtocolHandler, NS_IRESPROTOCOLHANDLER_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIRESPROTOCOLHANDLER \
48 : NS_SCRIPTABLE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI); \
49 : NS_SCRIPTABLE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval NS_OUTPARAM); \
50 : NS_SCRIPTABLE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval NS_OUTPARAM); \
51 : NS_SCRIPTABLE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval NS_OUTPARAM);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIRESPROTOCOLHANDLER(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) { return _to SetSubstitution(root, baseURI); } \
56 : NS_SCRIPTABLE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval NS_OUTPARAM) { return _to GetSubstitution(root, _retval); } \
57 : NS_SCRIPTABLE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval NS_OUTPARAM) { return _to HasSubstitution(root, _retval); } \
58 : NS_SCRIPTABLE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval NS_OUTPARAM) { return _to ResolveURI(resURI, _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_NSIRESPROTOCOLHANDLER(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD SetSubstitution(const nsACString & root, nsIURI *baseURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubstitution(root, baseURI); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetSubstitution(const nsACString & root, nsIURI * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubstitution(root, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD HasSubstitution(const nsACString & root, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasSubstitution(root, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD ResolveURI(nsIURI *resURI, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResolveURI(resURI, _retval); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsResProtocolHandler : public nsIResProtocolHandler
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIRESPROTOCOLHANDLER
76 :
77 : nsResProtocolHandler();
78 :
79 : private:
80 : ~nsResProtocolHandler();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsResProtocolHandler, nsIResProtocolHandler)
88 :
89 : nsResProtocolHandler::nsResProtocolHandler()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsResProtocolHandler::~nsResProtocolHandler()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* void setSubstitution (in ACString root, in nsIURI baseURI); */
100 : NS_IMETHODIMP nsResProtocolHandler::SetSubstitution(const nsACString & root, nsIURI *baseURI)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* nsIURI getSubstitution (in ACString root); */
106 : NS_IMETHODIMP nsResProtocolHandler::GetSubstitution(const nsACString & root, nsIURI * *_retval NS_OUTPARAM)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* boolean hasSubstitution (in ACString root); */
112 : NS_IMETHODIMP nsResProtocolHandler::HasSubstitution(const nsACString & root, bool *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* AUTF8String resolveURI (in nsIURI resURI); */
118 : NS_IMETHODIMP nsResProtocolHandler::ResolveURI(nsIURI *resURI, nsACString & _retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIResProtocolHandler_h__ */
|