1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsISSLCertErrorDialog.idl
3 : */
4 :
5 : #ifndef __gen_nsISSLCertErrorDialog_h__
6 : #define __gen_nsISSLCertErrorDialog_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 : class nsIX509Cert; /* forward declaration */
20 :
21 : class nsISSLStatus; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsISSLCertErrorDialog */
25 : #define NS_ISSLCERTERRORDIALOG_IID_STR "0729ce8e-8935-4989-ba72-a2d6307f2365"
26 :
27 : #define NS_ISSLCERTERRORDIALOG_IID \
28 : {0x0729ce8e, 0x8935, 0x4989, \
29 : { 0xba, 0x72, 0xa2, 0xd6, 0x30, 0x7f, 0x23, 0x65 }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISSLCertErrorDialog : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISSLCERTERRORDIALOG_IID)
35 :
36 : /* void showCertError (in nsIInterfaceRequestor ctx, in nsISSLStatus status, in nsIX509Cert cert, in AString textErrorMessage, in AString htmlErrorMessage, in ACString hostName, in PRUint32 portNumber); */
37 : NS_SCRIPTABLE NS_IMETHOD ShowCertError(nsIInterfaceRequestor *ctx, nsISSLStatus *status, nsIX509Cert *cert, const nsAString & textErrorMessage, const nsAString & htmlErrorMessage, const nsACString & hostName, PRUint32 portNumber) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISSLCertErrorDialog, NS_ISSLCERTERRORDIALOG_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSISSLCERTERRORDIALOG \
45 : NS_SCRIPTABLE NS_IMETHOD ShowCertError(nsIInterfaceRequestor *ctx, nsISSLStatus *status, nsIX509Cert *cert, const nsAString & textErrorMessage, const nsAString & htmlErrorMessage, const nsACString & hostName, PRUint32 portNumber);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSISSLCERTERRORDIALOG(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD ShowCertError(nsIInterfaceRequestor *ctx, nsISSLStatus *status, nsIX509Cert *cert, const nsAString & textErrorMessage, const nsAString & htmlErrorMessage, const nsACString & hostName, PRUint32 portNumber) { return _to ShowCertError(ctx, status, cert, textErrorMessage, htmlErrorMessage, hostName, portNumber); }
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
52 : #define NS_FORWARD_SAFE_NSISSLCERTERRORDIALOG(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD ShowCertError(nsIInterfaceRequestor *ctx, nsISSLStatus *status, nsIX509Cert *cert, const nsAString & textErrorMessage, const nsAString & htmlErrorMessage, const nsACString & hostName, PRUint32 portNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowCertError(ctx, status, cert, textErrorMessage, htmlErrorMessage, hostName, portNumber); }
54 :
55 : #if 0
56 : /* Use the code below as a template for the implementation class for this interface. */
57 :
58 : /* Header file */
59 : class nsSSLCertErrorDialog : public nsISSLCertErrorDialog
60 : {
61 : public:
62 : NS_DECL_ISUPPORTS
63 : NS_DECL_NSISSLCERTERRORDIALOG
64 :
65 : nsSSLCertErrorDialog();
66 :
67 : private:
68 : ~nsSSLCertErrorDialog();
69 :
70 : protected:
71 : /* additional members */
72 : };
73 :
74 : /* Implementation file */
75 : NS_IMPL_ISUPPORTS1(nsSSLCertErrorDialog, nsISSLCertErrorDialog)
76 :
77 : nsSSLCertErrorDialog::nsSSLCertErrorDialog()
78 : {
79 : /* member initializers and constructor code */
80 : }
81 :
82 : nsSSLCertErrorDialog::~nsSSLCertErrorDialog()
83 : {
84 : /* destructor code */
85 : }
86 :
87 : /* void showCertError (in nsIInterfaceRequestor ctx, in nsISSLStatus status, in nsIX509Cert cert, in AString textErrorMessage, in AString htmlErrorMessage, in ACString hostName, in PRUint32 portNumber); */
88 : NS_IMETHODIMP nsSSLCertErrorDialog::ShowCertError(nsIInterfaceRequestor *ctx, nsISSLStatus *status, nsIX509Cert *cert, const nsAString & textErrorMessage, const nsAString & htmlErrorMessage, const nsACString & hostName, PRUint32 portNumber)
89 : {
90 : return NS_ERROR_NOT_IMPLEMENTED;
91 : }
92 :
93 : /* End of implementation class template. */
94 : #endif
95 :
96 : #define NS_SSLCERTERRORDIALOG_CONTRACTID "@mozilla.org/nsSSLCertErrorDialog;1"
97 :
98 : #endif /* __gen_nsISSLCertErrorDialog_h__ */
|