Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIGeckoMediaPluginChromeService.idl
3 : */
4 :
5 : #ifndef __gen_mozIGeckoMediaPluginChromeService_h__
6 : #define __gen_mozIGeckoMediaPluginChromeService_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIFile_h__
14 : #include "nsIFile.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: mozIGeckoMediaPluginChromeService */
23 : #define MOZIGECKOMEDIAPLUGINCHROMESERVICE_IID_STR "32d35d21-181f-4630-8caa-a431e2ebad72"
24 :
25 : #define MOZIGECKOMEDIAPLUGINCHROMESERVICE_IID \
26 : {0x32d35d21, 0x181f, 0x4630, \
27 : { 0x8c, 0xaa, 0xa4, 0x31, 0xe2, 0xeb, 0xad, 0x72 }}
28 :
29 1 : class NS_NO_VTABLE mozIGeckoMediaPluginChromeService : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZIGECKOMEDIAPLUGINCHROMESERVICE_IID)
33 :
34 : /* void addPluginDirectory (in AString directory); */
35 : NS_IMETHOD AddPluginDirectory(const nsAString & directory) = 0;
36 :
37 : /* void removePluginDirectory (in AString directory); */
38 : NS_IMETHOD RemovePluginDirectory(const nsAString & directory) = 0;
39 :
40 : /* void removeAndDeletePluginDirectory (in AString directory, [optional] in bool defer); */
41 : NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) = 0;
42 :
43 : /* void forgetThisSite (in AString site, in DOMString aPattern); */
44 : NS_IMETHOD ForgetThisSite(const nsAString & site, const nsAString & aPattern) = 0;
45 :
46 : /* bool isPersistentStorageAllowed (in ACString nodeId); */
47 : NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) = 0;
48 :
49 : /* nsIFile getStorageDir (); */
50 : NS_IMETHOD GetStorageDir(nsIFile * *_retval) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIGeckoMediaPluginChromeService, MOZIGECKOMEDIAPLUGINCHROMESERVICE_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_MOZIGECKOMEDIAPLUGINCHROMESERVICE \
58 : NS_IMETHOD AddPluginDirectory(const nsAString & directory) override; \
59 : NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override; \
60 : NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override; \
61 : NS_IMETHOD ForgetThisSite(const nsAString & site, const nsAString & aPattern) override; \
62 : NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override; \
63 : NS_IMETHOD GetStorageDir(nsIFile * *_retval) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_MOZIGECKOMEDIAPLUGINCHROMESERVICE \
68 : nsresult AddPluginDirectory(const nsAString & directory); \
69 : nsresult RemovePluginDirectory(const nsAString & directory); \
70 : nsresult RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer); \
71 : nsresult ForgetThisSite(const nsAString & site, const nsAString & aPattern); \
72 : nsresult IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval); \
73 : nsresult GetStorageDir(nsIFile * *_retval);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_MOZIGECKOMEDIAPLUGINCHROMESERVICE(_to) \
77 : NS_IMETHOD AddPluginDirectory(const nsAString & directory) override { return _to AddPluginDirectory(directory); } \
78 : NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override { return _to RemovePluginDirectory(directory); } \
79 : NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override { return _to RemoveAndDeletePluginDirectory(directory, defer); } \
80 : NS_IMETHOD ForgetThisSite(const nsAString & site, const nsAString & aPattern) override { return _to ForgetThisSite(site, aPattern); } \
81 : NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override { return _to IsPersistentStorageAllowed(nodeId, _retval); } \
82 : NS_IMETHOD GetStorageDir(nsIFile * *_retval) override { return _to GetStorageDir(_retval); }
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
85 : #define NS_FORWARD_SAFE_MOZIGECKOMEDIAPLUGINCHROMESERVICE(_to) \
86 : NS_IMETHOD AddPluginDirectory(const nsAString & directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPluginDirectory(directory); } \
87 : NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePluginDirectory(directory); } \
88 : NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAndDeletePluginDirectory(directory, defer); } \
89 : NS_IMETHOD ForgetThisSite(const nsAString & site, const nsAString & aPattern) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForgetThisSite(site, aPattern); } \
90 : NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPersistentStorageAllowed(nodeId, _retval); } \
91 : NS_IMETHOD GetStorageDir(nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorageDir(_retval); }
92 :
93 : #if 0
94 : /* Use the code below as a template for the implementation class for this interface. */
95 :
96 : /* Header file */
97 : class _MYCLASS_ : public mozIGeckoMediaPluginChromeService
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_MOZIGECKOMEDIAPLUGINCHROMESERVICE
102 :
103 : _MYCLASS_();
104 :
105 : private:
106 : ~_MYCLASS_();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIGeckoMediaPluginChromeService)
114 :
115 : _MYCLASS_::_MYCLASS_()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : _MYCLASS_::~_MYCLASS_()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* void addPluginDirectory (in AString directory); */
126 : NS_IMETHODIMP _MYCLASS_::AddPluginDirectory(const nsAString & directory)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void removePluginDirectory (in AString directory); */
132 : NS_IMETHODIMP _MYCLASS_::RemovePluginDirectory(const nsAString & directory)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void removeAndDeletePluginDirectory (in AString directory, [optional] in bool defer); */
138 : NS_IMETHODIMP _MYCLASS_::RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void forgetThisSite (in AString site, in DOMString aPattern); */
144 : NS_IMETHODIMP _MYCLASS_::ForgetThisSite(const nsAString & site, const nsAString & aPattern)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* bool isPersistentStorageAllowed (in ACString nodeId); */
150 : NS_IMETHODIMP _MYCLASS_::IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* nsIFile getStorageDir (); */
156 : NS_IMETHODIMP _MYCLASS_::GetStorageDir(nsIFile * *_retval)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* End of implementation class template. */
162 : #endif
163 :
164 :
165 : #endif /* __gen_mozIGeckoMediaPluginChromeService_h__ */
|