1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/tools/profiler/nsIProfiler.idl
3 : */
4 :
5 : #ifndef __gen_nsIProfiler_h__
6 : #define __gen_nsIProfiler_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIProfiler */
21 : #define NS_IPROFILER_IID_STR "e388fded-1321-41af-a988-861a2bc5cfc3"
22 :
23 : #define NS_IPROFILER_IID \
24 : {0xe388fded, 0x1321, 0x41af, \
25 : { 0xa9, 0x88, 0x86, 0x1a, 0x2b, 0xc5, 0xcf, 0xc3 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProfiler : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILER_IID)
31 :
32 : /* void StartProfiler (in PRUint32 aInterval, in PRUint32 aEntries, [array, size_is (aFeatureCount)] in string aFeatures, in PRUint32 aFeatureCount); */
33 : NS_SCRIPTABLE NS_IMETHOD StartProfiler(PRUint32 aInterval, PRUint32 aEntries, const char * *aFeatures, PRUint32 aFeatureCount) = 0;
34 :
35 : /* void StopProfiler (); */
36 : NS_SCRIPTABLE NS_IMETHOD StopProfiler(void) = 0;
37 :
38 : /* string GetProfile (); */
39 : NS_SCRIPTABLE NS_IMETHOD GetProfile(char * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* [implicit_jscontext] jsval getProfileData (); */
42 : NS_SCRIPTABLE NS_IMETHOD GetProfileData(JSContext* cx, JS::Value *_retval NS_OUTPARAM) = 0;
43 :
44 : /* boolean IsActive (); */
45 : NS_SCRIPTABLE NS_IMETHOD IsActive(bool *_retval NS_OUTPARAM) = 0;
46 :
47 : /* void GetResponsivenessTimes (out PRUint32 aCount, [array, size_is (aCount), retval] out double aResult); */
48 : NS_SCRIPTABLE NS_IMETHOD GetResponsivenessTimes(PRUint32 *aCount NS_OUTPARAM, double **aResult NS_OUTPARAM) = 0;
49 :
50 : /* void GetFeatures (out PRUint32 aCount, [array, size_is (aCount), retval] out string aFeatures); */
51 : NS_SCRIPTABLE NS_IMETHOD GetFeatures(PRUint32 *aCount NS_OUTPARAM, char * **aFeatures NS_OUTPARAM) = 0;
52 :
53 : /* AString getSharedLibraryInformation (); */
54 : NS_SCRIPTABLE NS_IMETHOD GetSharedLibraryInformation(nsAString & _retval NS_OUTPARAM) = 0;
55 :
56 : };
57 :
58 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfiler, NS_IPROFILER_IID)
59 :
60 : /* Use this macro when declaring classes that implement this interface. */
61 : #define NS_DECL_NSIPROFILER \
62 : NS_SCRIPTABLE NS_IMETHOD StartProfiler(PRUint32 aInterval, PRUint32 aEntries, const char * *aFeatures, PRUint32 aFeatureCount); \
63 : NS_SCRIPTABLE NS_IMETHOD StopProfiler(void); \
64 : NS_SCRIPTABLE NS_IMETHOD GetProfile(char * *_retval NS_OUTPARAM); \
65 : NS_SCRIPTABLE NS_IMETHOD GetProfileData(JSContext* cx, JS::Value *_retval NS_OUTPARAM); \
66 : NS_SCRIPTABLE NS_IMETHOD IsActive(bool *_retval NS_OUTPARAM); \
67 : NS_SCRIPTABLE NS_IMETHOD GetResponsivenessTimes(PRUint32 *aCount NS_OUTPARAM, double **aResult NS_OUTPARAM); \
68 : NS_SCRIPTABLE NS_IMETHOD GetFeatures(PRUint32 *aCount NS_OUTPARAM, char * **aFeatures NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD GetSharedLibraryInformation(nsAString & _retval NS_OUTPARAM);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSIPROFILER(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD StartProfiler(PRUint32 aInterval, PRUint32 aEntries, const char * *aFeatures, PRUint32 aFeatureCount) { return _to StartProfiler(aInterval, aEntries, aFeatures, aFeatureCount); } \
74 : NS_SCRIPTABLE NS_IMETHOD StopProfiler(void) { return _to StopProfiler(); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetProfile(char * *_retval NS_OUTPARAM) { return _to GetProfile(_retval); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetProfileData(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return _to GetProfileData(cx, _retval); } \
77 : NS_SCRIPTABLE NS_IMETHOD IsActive(bool *_retval NS_OUTPARAM) { return _to IsActive(_retval); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetResponsivenessTimes(PRUint32 *aCount NS_OUTPARAM, double **aResult NS_OUTPARAM) { return _to GetResponsivenessTimes(aCount, aResult); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetFeatures(PRUint32 *aCount NS_OUTPARAM, char * **aFeatures NS_OUTPARAM) { return _to GetFeatures(aCount, aFeatures); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetSharedLibraryInformation(nsAString & _retval NS_OUTPARAM) { return _to GetSharedLibraryInformation(_retval); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSIPROFILER(_to) \
84 : NS_SCRIPTABLE NS_IMETHOD StartProfiler(PRUint32 aInterval, PRUint32 aEntries, const char * *aFeatures, PRUint32 aFeatureCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartProfiler(aInterval, aEntries, aFeatures, aFeatureCount); } \
85 : NS_SCRIPTABLE NS_IMETHOD StopProfiler(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopProfiler(); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetProfile(char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfile(_retval); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetProfileData(JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileData(cx, _retval); } \
88 : NS_SCRIPTABLE NS_IMETHOD IsActive(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsActive(_retval); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetResponsivenessTimes(PRUint32 *aCount NS_OUTPARAM, double **aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponsivenessTimes(aCount, aResult); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetFeatures(PRUint32 *aCount NS_OUTPARAM, char * **aFeatures NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatures(aCount, aFeatures); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetSharedLibraryInformation(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedLibraryInformation(_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 nsProfiler : public nsIProfiler
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSIPROFILER
102 :
103 : nsProfiler();
104 :
105 : private:
106 : ~nsProfiler();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS1(nsProfiler, nsIProfiler)
114 :
115 : nsProfiler::nsProfiler()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsProfiler::~nsProfiler()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* void StartProfiler (in PRUint32 aInterval, in PRUint32 aEntries, [array, size_is (aFeatureCount)] in string aFeatures, in PRUint32 aFeatureCount); */
126 : NS_IMETHODIMP nsProfiler::StartProfiler(PRUint32 aInterval, PRUint32 aEntries, const char * *aFeatures, PRUint32 aFeatureCount)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void StopProfiler (); */
132 : NS_IMETHODIMP nsProfiler::StopProfiler()
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* string GetProfile (); */
138 : NS_IMETHODIMP nsProfiler::GetProfile(char * *_retval NS_OUTPARAM)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* [implicit_jscontext] jsval getProfileData (); */
144 : NS_IMETHODIMP nsProfiler::GetProfileData(JSContext* cx, JS::Value *_retval NS_OUTPARAM)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* boolean IsActive (); */
150 : NS_IMETHODIMP nsProfiler::IsActive(bool *_retval NS_OUTPARAM)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void GetResponsivenessTimes (out PRUint32 aCount, [array, size_is (aCount), retval] out double aResult); */
156 : NS_IMETHODIMP nsProfiler::GetResponsivenessTimes(PRUint32 *aCount NS_OUTPARAM, double **aResult NS_OUTPARAM)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* void GetFeatures (out PRUint32 aCount, [array, size_is (aCount), retval] out string aFeatures); */
162 : NS_IMETHODIMP nsProfiler::GetFeatures(PRUint32 *aCount NS_OUTPARAM, char * **aFeatures NS_OUTPARAM)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* AString getSharedLibraryInformation (); */
168 : NS_IMETHODIMP nsProfiler::GetSharedLibraryInformation(nsAString & _retval NS_OUTPARAM)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* End of implementation class template. */
174 : #endif
175 :
176 :
177 : #endif /* __gen_nsIProfiler_h__ */
|