Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDocumentLoaderFactory.idl
3 : */
4 :
5 : #ifndef __gen_nsIDocumentLoaderFactory_h__
6 : #define __gen_nsIDocumentLoaderFactory_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 nsIChannel; /* forward declaration */
18 :
19 : class nsIContentViewer; /* forward declaration */
20 :
21 : class nsIStreamListener; /* forward declaration */
22 :
23 : class nsIDocShell; /* forward declaration */
24 :
25 : class nsIDocument; /* forward declaration */
26 :
27 : class nsILoadGroup; /* forward declaration */
28 :
29 : class nsIPrincipal; /* forward declaration */
30 :
31 :
32 : /* starting interface: nsIDocumentLoaderFactory */
33 : #define NS_IDOCUMENTLOADERFACTORY_IID_STR "e795239e-9d3c-47c4-b063-9e600fb3b287"
34 :
35 : #define NS_IDOCUMENTLOADERFACTORY_IID \
36 : {0xe795239e, 0x9d3c, 0x47c4, \
37 : { 0xb0, 0x63, 0x9e, 0x60, 0x0f, 0xb3, 0xb2, 0x87 }}
38 :
39 2 : class NS_NO_VTABLE nsIDocumentLoaderFactory : public nsISupports {
40 : public:
41 :
42 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCUMENTLOADERFACTORY_IID)
43 :
44 : /* nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in ACString aContentType, in nsIDocShell aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult); */
45 : NS_IMETHOD CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval) = 0;
46 :
47 : /* nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand); */
48 : NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval) = 0;
49 :
50 : /* nsIDocument createBlankDocument (in nsILoadGroup aLoadGroup, in nsIPrincipal aPrincipal); */
51 : NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval) = 0;
52 :
53 : };
54 :
55 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocumentLoaderFactory, NS_IDOCUMENTLOADERFACTORY_IID)
56 :
57 : /* Use this macro when declaring classes that implement this interface. */
58 : #define NS_DECL_NSIDOCUMENTLOADERFACTORY \
59 : NS_IMETHOD CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval) override; \
60 : NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval) override; \
61 : NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval) override;
62 :
63 : /* Use this macro when declaring the members of this interface when the
64 : class doesn't implement the interface. This is useful for forwarding. */
65 : #define NS_DECL_NON_VIRTUAL_NSIDOCUMENTLOADERFACTORY \
66 : nsresult CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval); \
67 : nsresult CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval); \
68 : nsresult CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval);
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
71 : #define NS_FORWARD_NSIDOCUMENTLOADERFACTORY(_to) \
72 : NS_IMETHOD CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval) override { return _to CreateInstance(aCommand, aChannel, aLoadGroup, aContentType, aContainer, aExtraInfo, aDocListenerResult, _retval); } \
73 : NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval) override { return _to CreateInstanceForDocument(aContainer, aDocument, aCommand, _retval); } \
74 : NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval) override { return _to CreateBlankDocument(aLoadGroup, aPrincipal, _retval); }
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
77 : #define NS_FORWARD_SAFE_NSIDOCUMENTLOADERFACTORY(_to) \
78 : NS_IMETHOD CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(aCommand, aChannel, aLoadGroup, aContentType, aContainer, aExtraInfo, aDocListenerResult, _retval); } \
79 : NS_IMETHOD CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceForDocument(aContainer, aDocument, aCommand, _retval); } \
80 : NS_IMETHOD CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBlankDocument(aLoadGroup, aPrincipal, _retval); }
81 :
82 : #if 0
83 : /* Use the code below as a template for the implementation class for this interface. */
84 :
85 : /* Header file */
86 : class nsDocumentLoaderFactory : public nsIDocumentLoaderFactory
87 : {
88 : public:
89 : NS_DECL_ISUPPORTS
90 : NS_DECL_NSIDOCUMENTLOADERFACTORY
91 :
92 : nsDocumentLoaderFactory();
93 :
94 : private:
95 : ~nsDocumentLoaderFactory();
96 :
97 : protected:
98 : /* additional members */
99 : };
100 :
101 : /* Implementation file */
102 : NS_IMPL_ISUPPORTS(nsDocumentLoaderFactory, nsIDocumentLoaderFactory)
103 :
104 : nsDocumentLoaderFactory::nsDocumentLoaderFactory()
105 : {
106 : /* member initializers and constructor code */
107 : }
108 :
109 : nsDocumentLoaderFactory::~nsDocumentLoaderFactory()
110 : {
111 : /* destructor code */
112 : }
113 :
114 : /* nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in ACString aContentType, in nsIDocShell aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult); */
115 : NS_IMETHODIMP nsDocumentLoaderFactory::CreateInstance(const char * aCommand, nsIChannel *aChannel, nsILoadGroup *aLoadGroup, const nsACString & aContentType, nsIDocShell *aContainer, nsISupports *aExtraInfo, nsIStreamListener * *aDocListenerResult, nsIContentViewer * *_retval)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand); */
121 : NS_IMETHODIMP nsDocumentLoaderFactory::CreateInstanceForDocument(nsISupports *aContainer, nsIDocument *aDocument, const char * aCommand, nsIContentViewer * *_retval)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* nsIDocument createBlankDocument (in nsILoadGroup aLoadGroup, in nsIPrincipal aPrincipal); */
127 : NS_IMETHODIMP nsDocumentLoaderFactory::CreateBlankDocument(nsILoadGroup *aLoadGroup, nsIPrincipal *aPrincipal, nsIDocument * *_retval)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* End of implementation class template. */
133 : #endif
134 :
135 :
136 : #endif /* __gen_nsIDocumentLoaderFactory_h__ */
|