1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIChannelPolicy.idl
3 : */
4 :
5 : #ifndef __gen_nsIChannelPolicy_h__
6 : #define __gen_nsIChannelPolicy_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: nsIChannelPolicy */
19 : #define NS_ICHANNELPOLICY_IID_STR "18045e96-1afe-4162-837a-04691267158c"
20 :
21 : #define NS_ICHANNELPOLICY_IID \
22 : {0x18045e96, 0x1afe, 0x4162, \
23 : { 0x83, 0x7a, 0x04, 0x69, 0x12, 0x67, 0x15, 0x8c }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIChannelPolicy : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNELPOLICY_IID)
29 :
30 : /* attribute unsigned long loadType; */
31 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) = 0;
33 :
34 : /* attribute nsISupports contentSecurityPolicy; */
35 : NS_SCRIPTABLE NS_IMETHOD GetContentSecurityPolicy(nsISupports * *aContentSecurityPolicy) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetContentSecurityPolicy(nsISupports *aContentSecurityPolicy) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannelPolicy, NS_ICHANNELPOLICY_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSICHANNELPOLICY \
44 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType); \
45 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType); \
46 : NS_SCRIPTABLE NS_IMETHOD GetContentSecurityPolicy(nsISupports * *aContentSecurityPolicy); \
47 : NS_SCRIPTABLE NS_IMETHOD SetContentSecurityPolicy(nsISupports *aContentSecurityPolicy);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSICHANNELPOLICY(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return _to GetLoadType(aLoadType); } \
52 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return _to SetLoadType(aLoadType); } \
53 : NS_SCRIPTABLE NS_IMETHOD GetContentSecurityPolicy(nsISupports * *aContentSecurityPolicy) { return _to GetContentSecurityPolicy(aContentSecurityPolicy); } \
54 : NS_SCRIPTABLE NS_IMETHOD SetContentSecurityPolicy(nsISupports *aContentSecurityPolicy) { return _to SetContentSecurityPolicy(aContentSecurityPolicy); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSICHANNELPOLICY(_to) \
58 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadType(aLoadType); } \
59 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadType(aLoadType); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetContentSecurityPolicy(nsISupports * *aContentSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentSecurityPolicy(aContentSecurityPolicy); } \
61 : NS_SCRIPTABLE NS_IMETHOD SetContentSecurityPolicy(nsISupports *aContentSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentSecurityPolicy(aContentSecurityPolicy); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsChannelPolicy : public nsIChannelPolicy
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSICHANNELPOLICY
72 :
73 : nsChannelPolicy();
74 :
75 : private:
76 : ~nsChannelPolicy();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS1(nsChannelPolicy, nsIChannelPolicy)
84 :
85 : nsChannelPolicy::nsChannelPolicy()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsChannelPolicy::~nsChannelPolicy()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* attribute unsigned long loadType; */
96 : NS_IMETHODIMP nsChannelPolicy::GetLoadType(PRUint32 *aLoadType)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 : NS_IMETHODIMP nsChannelPolicy::SetLoadType(PRUint32 aLoadType)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* attribute nsISupports contentSecurityPolicy; */
106 : NS_IMETHODIMP nsChannelPolicy::GetContentSecurityPolicy(nsISupports * *aContentSecurityPolicy)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 : NS_IMETHODIMP nsChannelPolicy::SetContentSecurityPolicy(nsISupports *aContentSecurityPolicy)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* End of implementation class template. */
116 : #endif
117 :
118 :
119 : #endif /* __gen_nsIChannelPolicy_h__ */
|