PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsISecurityWarningDialogs.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 217 lines | 90 code | 37 blank | 90 comment | 0 complexity | cd0a23e8e7fa4a369f42aa3d0582dc9f MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/security/manager/boot/public/nsISecurityWarningDialogs.idl
  3 */
  4
  5#ifndef __gen_nsISecurityWarningDialogs_h__
  6#define __gen_nsISecurityWarningDialogs_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
 17class nsIInterfaceRequestor; /* forward declaration */
 18
 19
 20/* starting interface:    nsISecurityWarningDialogs */
 21#define NS_ISECURITYWARNINGDIALOGS_IID_STR "1c399d06-1dd2-11b2-bc58-c87cbcacdb78"
 22
 23#define NS_ISECURITYWARNINGDIALOGS_IID \
 24  {0x1c399d06, 0x1dd2, 0x11b2, \
 25    { 0xbc, 0x58, 0xc8, 0x7c, 0xbc, 0xac, 0xdb, 0x78 }}
 26
 27/**
 28 * Functions that display warnings for transitions between secure
 29 * and insecure pages, posts to insecure servers etc.
 30 *
 31 * @status FROZEN
 32 */
 33class NS_NO_VTABLE NS_SCRIPTABLE nsISecurityWarningDialogs : public nsISupports {
 34 public: 
 35
 36  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECURITYWARNINGDIALOGS_IID)
 37
 38  /**
 39   *  Inform the user that a transition 
 40   *    from an insecure page 
 41   *    to a secure page
 42   *  is happening.
 43   *
 44   *  @param ctx A user interface context.
 45   *
 46   *  @return true if the user confirms to continue
 47   */
 48  /* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
 49  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
 50
 51  /**
 52   *  Inform the user that a transition 
 53   *    from an insecure page 
 54   *    or from a secure page
 55   *    to a weak security page
 56   *  is happening.
 57   *
 58   *  @param ctx A user interface context.
 59   *
 60   *  @return true if the user confirms to continue
 61   */
 62  /* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
 63  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
 64
 65  /**
 66   *  Inform the user that a transition 
 67   *    from a secure page 
 68   *    to an insecure page
 69   *  is happening.
 70   *
 71   *  @param ctx A user interface context.
 72   *
 73   *  @return true if the user confirms to continue
 74   */
 75  /* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
 76  NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
 77
 78  /**
 79   *  Inform the user the currently displayed page
 80   *  contains some secure and some insecure page components.
 81   *
 82   *  @param ctx A user interface context.
 83   *
 84   *  @return true if the user decides to show insecure objects.
 85   */
 86  /* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
 87  NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
 88
 89  /**
 90   *  Inform the user that information is being submitted
 91   *  to an insecure page.
 92   *
 93   *  @param ctx A user interface context.
 94   *
 95   *  @return true if the user confirms to submit.
 96   */
 97  /* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
 98  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
 99
100  /**
101   *  Inform the user: Although the currently displayed
102   *  page was loaded using a secure connection, and the UI probably
103   *  currently indicates a secure page, 
104   *  that information is being submitted to an insecure page.
105   *
106   *  @param ctx A user interface context.
107   *
108   *  @return true if the user confirms to submit.
109   */
110  /* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
111  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
112
113};
114
115  NS_DEFINE_STATIC_IID_ACCESSOR(nsISecurityWarningDialogs, NS_ISECURITYWARNINGDIALOGS_IID)
116
117/* Use this macro when declaring classes that implement this interface. */
118#define NS_DECL_NSISECURITYWARNINGDIALOGS \
119  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
120  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval); \
121  NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
122  NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval); \
123  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
124  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); 
125
126/* Use this macro to declare functions that forward the behavior of this interface to another object. */
127#define NS_FORWARD_NSISECURITYWARNINGDIALOGS(_to) \
128  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringSecure(ctx, _retval); } \
129  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringWeak(ctx, _retval); } \
130  NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmLeavingSecure(ctx, _retval); } \
131  NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmMixedMode(ctx, _retval); } \
132  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecure(ctx, _retval); } \
133  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecureFromSecure(ctx, _retval); } 
134
135/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
136#define NS_FORWARD_SAFE_NSISECURITYWARNINGDIALOGS(_to) \
137  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringSecure(ctx, _retval); } \
138  NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringWeak(ctx, _retval); } \
139  NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmLeavingSecure(ctx, _retval); } \
140  NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmMixedMode(ctx, _retval); } \
141  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecure(ctx, _retval); } \
142  NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecureFromSecure(ctx, _retval); } 
143
144#if 0
145/* Use the code below as a template for the implementation class for this interface. */
146
147/* Header file */
148class nsSecurityWarningDialogs : public nsISecurityWarningDialogs
149{
150public:
151  NS_DECL_ISUPPORTS
152  NS_DECL_NSISECURITYWARNINGDIALOGS
153
154  nsSecurityWarningDialogs();
155
156private:
157  ~nsSecurityWarningDialogs();
158
159protected:
160  /* additional members */
161};
162
163/* Implementation file */
164NS_IMPL_ISUPPORTS1(nsSecurityWarningDialogs, nsISecurityWarningDialogs)
165
166nsSecurityWarningDialogs::nsSecurityWarningDialogs()
167{
168  /* member initializers and constructor code */
169}
170
171nsSecurityWarningDialogs::~nsSecurityWarningDialogs()
172{
173  /* destructor code */
174}
175
176/* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
177NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
178{
179    return NS_ERROR_NOT_IMPLEMENTED;
180}
181
182/* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
183NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval)
184{
185    return NS_ERROR_NOT_IMPLEMENTED;
186}
187
188/* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
189NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
190{
191    return NS_ERROR_NOT_IMPLEMENTED;
192}
193
194/* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
195NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval)
196{
197    return NS_ERROR_NOT_IMPLEMENTED;
198}
199
200/* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
201NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
202{
203    return NS_ERROR_NOT_IMPLEMENTED;
204}
205
206/* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
207NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
208{
209    return NS_ERROR_NOT_IMPLEMENTED;
210}
211
212/* End of implementation class template. */
213#endif
214
215#define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1"
216
217#endif /* __gen_nsISecurityWarningDialogs_h__ */