1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/base/nsIScriptChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIScriptChannel_h__
6 : #define __gen_nsIScriptChannel_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 :
18 : /* starting interface: nsIScriptChannel */
19 : #define NS_ISCRIPTCHANNEL_IID_STR "33234b99-9588-4c7d-9da6-86b8b7cba565"
20 :
21 : #define NS_ISCRIPTCHANNEL_IID \
22 : {0x33234b99, 0x9588, 0x4c7d, \
23 : { 0x9d, 0xa6, 0x86, 0xb8, 0xb7, 0xcb, 0xa5, 0x65 }}
24 :
25 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptChannel : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTCHANNEL_IID)
29 :
30 : enum {
31 : NO_EXECUTION = 0U,
32 : EXECUTE_IN_SANDBOX = 1U,
33 : EXECUTE_NORMAL = 2U
34 : };
35 :
36 : /* attribute unsigned long executionPolicy; */
37 : NS_SCRIPTABLE NS_IMETHOD GetExecutionPolicy(PRUint32 *aExecutionPolicy) = 0;
38 : NS_SCRIPTABLE NS_IMETHOD SetExecutionPolicy(PRUint32 aExecutionPolicy) = 0;
39 :
40 : /* attribute boolean executeAsync; */
41 : NS_SCRIPTABLE NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) = 0;
42 : NS_SCRIPTABLE NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptChannel, NS_ISCRIPTCHANNEL_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSISCRIPTCHANNEL \
50 : NS_SCRIPTABLE NS_IMETHOD GetExecutionPolicy(PRUint32 *aExecutionPolicy); \
51 : NS_SCRIPTABLE NS_IMETHOD SetExecutionPolicy(PRUint32 aExecutionPolicy); \
52 : NS_SCRIPTABLE NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync); \
53 : NS_SCRIPTABLE NS_IMETHOD SetExecuteAsync(bool aExecuteAsync);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSISCRIPTCHANNEL(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD GetExecutionPolicy(PRUint32 *aExecutionPolicy) { return _to GetExecutionPolicy(aExecutionPolicy); } \
58 : NS_SCRIPTABLE NS_IMETHOD SetExecutionPolicy(PRUint32 aExecutionPolicy) { return _to SetExecutionPolicy(aExecutionPolicy); } \
59 : NS_SCRIPTABLE NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) { return _to GetExecuteAsync(aExecuteAsync); } \
60 : NS_SCRIPTABLE NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) { return _to SetExecuteAsync(aExecuteAsync); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSISCRIPTCHANNEL(_to) \
64 : NS_SCRIPTABLE NS_IMETHOD GetExecutionPolicy(PRUint32 *aExecutionPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutionPolicy(aExecutionPolicy); } \
65 : NS_SCRIPTABLE NS_IMETHOD SetExecutionPolicy(PRUint32 aExecutionPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecutionPolicy(aExecutionPolicy); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetExecuteAsync(bool *aExecuteAsync) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecuteAsync(aExecuteAsync); } \
67 : NS_SCRIPTABLE NS_IMETHOD SetExecuteAsync(bool aExecuteAsync) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExecuteAsync(aExecuteAsync); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsScriptChannel : public nsIScriptChannel
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSISCRIPTCHANNEL
78 :
79 : nsScriptChannel();
80 :
81 : private:
82 : ~nsScriptChannel();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsScriptChannel, nsIScriptChannel)
90 :
91 : nsScriptChannel::nsScriptChannel()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsScriptChannel::~nsScriptChannel()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* attribute unsigned long executionPolicy; */
102 : NS_IMETHODIMP nsScriptChannel::GetExecutionPolicy(PRUint32 *aExecutionPolicy)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 : NS_IMETHODIMP nsScriptChannel::SetExecutionPolicy(PRUint32 aExecutionPolicy)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* attribute boolean executeAsync; */
112 : NS_IMETHODIMP nsScriptChannel::GetExecuteAsync(bool *aExecuteAsync)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 : NS_IMETHODIMP nsScriptChannel::SetExecuteAsync(bool aExecuteAsync)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* End of implementation class template. */
122 : #endif
123 :
124 :
125 : #endif /* __gen_nsIScriptChannel_h__ */
|