1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/socket/nsISSLSocketControl.idl
3 : */
4 :
5 : #ifndef __gen_nsISSLSocketControl_h__
6 : #define __gen_nsISSLSocketControl_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 nsIInterfaceRequestor; /* forward declaration */
18 :
19 : #include "nsTArray.h"
20 : class nsCString;
21 :
22 : /* starting interface: nsISSLSocketControl */
23 : #define NS_ISSLSOCKETCONTROL_IID_STR "753f0f13-681d-4de3-a6c6-11aa7e0b3afd"
24 :
25 : #define NS_ISSLSOCKETCONTROL_IID \
26 : {0x753f0f13, 0x681d, 0x4de3, \
27 : { 0xa6, 0xc6, 0x11, 0xaa, 0x7e, 0x0b, 0x3a, 0xfd }}
28 :
29 4 : class NS_NO_VTABLE NS_SCRIPTABLE nsISSLSocketControl : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISSLSOCKETCONTROL_IID)
33 :
34 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
35 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
37 :
38 : /* void proxyStartSSL (); */
39 : NS_SCRIPTABLE NS_IMETHOD ProxyStartSSL(void) = 0;
40 :
41 : /* void StartTLS (); */
42 : NS_SCRIPTABLE NS_IMETHOD StartTLS(void) = 0;
43 :
44 : /* [noscript] void setNPNList (in nsCStringTArrayRef aNPNList); */
45 : NS_IMETHOD SetNPNList(nsTArray<nsCString> & aNPNList) = 0;
46 :
47 : /* readonly attribute ACString negotiatedNPN; */
48 : NS_SCRIPTABLE NS_IMETHOD GetNegotiatedNPN(nsACString & aNegotiatedNPN) = 0;
49 :
50 : /* boolean joinConnection (in ACString npnProtocol, in ACString hostname, in long port); */
51 : NS_SCRIPTABLE NS_IMETHOD JoinConnection(const nsACString & npnProtocol, const nsACString & hostname, PRInt32 port, bool *_retval NS_OUTPARAM) = 0;
52 :
53 : };
54 :
55 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISSLSocketControl, NS_ISSLSOCKETCONTROL_IID)
56 :
57 : /* Use this macro when declaring classes that implement this interface. */
58 : #define NS_DECL_NSISSLSOCKETCONTROL \
59 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
60 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
61 : NS_SCRIPTABLE NS_IMETHOD ProxyStartSSL(void); \
62 : NS_SCRIPTABLE NS_IMETHOD StartTLS(void); \
63 : NS_IMETHOD SetNPNList(nsTArray<nsCString> & aNPNList); \
64 : NS_SCRIPTABLE NS_IMETHOD GetNegotiatedNPN(nsACString & aNegotiatedNPN); \
65 : NS_SCRIPTABLE NS_IMETHOD JoinConnection(const nsACString & npnProtocol, const nsACString & hostname, PRInt32 port, bool *_retval NS_OUTPARAM);
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
68 : #define NS_FORWARD_NSISSLSOCKETCONTROL(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
70 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
71 : NS_SCRIPTABLE NS_IMETHOD ProxyStartSSL(void) { return _to ProxyStartSSL(); } \
72 : NS_SCRIPTABLE NS_IMETHOD StartTLS(void) { return _to StartTLS(); } \
73 : NS_IMETHOD SetNPNList(nsTArray<nsCString> & aNPNList) { return _to SetNPNList(aNPNList); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetNegotiatedNPN(nsACString & aNegotiatedNPN) { return _to GetNegotiatedNPN(aNegotiatedNPN); } \
75 : NS_SCRIPTABLE NS_IMETHOD JoinConnection(const nsACString & npnProtocol, const nsACString & hostname, PRInt32 port, bool *_retval NS_OUTPARAM) { return _to JoinConnection(npnProtocol, hostname, port, _retval); }
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
78 : #define NS_FORWARD_SAFE_NSISSLSOCKETCONTROL(_to) \
79 : NS_SCRIPTABLE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
80 : NS_SCRIPTABLE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
81 : NS_SCRIPTABLE NS_IMETHOD ProxyStartSSL(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProxyStartSSL(); } \
82 : NS_SCRIPTABLE NS_IMETHOD StartTLS(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartTLS(); } \
83 : NS_IMETHOD SetNPNList(nsTArray<nsCString> & aNPNList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNPNList(aNPNList); } \
84 : NS_SCRIPTABLE NS_IMETHOD GetNegotiatedNPN(nsACString & aNegotiatedNPN) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNegotiatedNPN(aNegotiatedNPN); } \
85 : NS_SCRIPTABLE NS_IMETHOD JoinConnection(const nsACString & npnProtocol, const nsACString & hostname, PRInt32 port, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->JoinConnection(npnProtocol, hostname, port, _retval); }
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsSSLSocketControl : public nsISSLSocketControl
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSISSLSOCKETCONTROL
96 :
97 : nsSSLSocketControl();
98 :
99 : private:
100 : ~nsSSLSocketControl();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS1(nsSSLSocketControl, nsISSLSocketControl)
108 :
109 : nsSSLSocketControl::nsSSLSocketControl()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsSSLSocketControl::~nsSSLSocketControl()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* attribute nsIInterfaceRequestor notificationCallbacks; */
120 : NS_IMETHODIMP nsSSLSocketControl::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 : NS_IMETHODIMP nsSSLSocketControl::SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void proxyStartSSL (); */
130 : NS_IMETHODIMP nsSSLSocketControl::ProxyStartSSL()
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* void StartTLS (); */
136 : NS_IMETHODIMP nsSSLSocketControl::StartTLS()
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* [noscript] void setNPNList (in nsCStringTArrayRef aNPNList); */
142 : NS_IMETHODIMP nsSSLSocketControl::SetNPNList(nsTArray<nsCString> & aNPNList)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* readonly attribute ACString negotiatedNPN; */
148 : NS_IMETHODIMP nsSSLSocketControl::GetNegotiatedNPN(nsACString & aNegotiatedNPN)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* boolean joinConnection (in ACString npnProtocol, in ACString hostname, in long port); */
154 : NS_IMETHODIMP nsSSLSocketControl::JoinConnection(const nsACString & npnProtocol, const nsACString & hostname, PRInt32 port, bool *_retval NS_OUTPARAM)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* End of implementation class template. */
160 : #endif
161 :
162 :
163 : #endif /* __gen_nsISSLSocketControl_h__ */
|