PageRenderTime 39ms CodeModel.GetById 14ms 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. #ifndef __gen_nsISecurityWarningDialogs_h__
  5. #define __gen_nsISecurityWarningDialogs_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. class nsIInterfaceRequestor; /* forward declaration */
  14. /* starting interface: nsISecurityWarningDialogs */
  15. #define NS_ISECURITYWARNINGDIALOGS_IID_STR "1c399d06-1dd2-11b2-bc58-c87cbcacdb78"
  16. #define NS_ISECURITYWARNINGDIALOGS_IID \
  17. {0x1c399d06, 0x1dd2, 0x11b2, \
  18. { 0xbc, 0x58, 0xc8, 0x7c, 0xbc, 0xac, 0xdb, 0x78 }}
  19. /**
  20. * Functions that display warnings for transitions between secure
  21. * and insecure pages, posts to insecure servers etc.
  22. *
  23. * @status FROZEN
  24. */
  25. class NS_NO_VTABLE NS_SCRIPTABLE nsISecurityWarningDialogs : public nsISupports {
  26. public:
  27. NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECURITYWARNINGDIALOGS_IID)
  28. /**
  29. * Inform the user that a transition
  30. * from an insecure page
  31. * to a secure page
  32. * is happening.
  33. *
  34. * @param ctx A user interface context.
  35. *
  36. * @return true if the user confirms to continue
  37. */
  38. /* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
  39. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  40. /**
  41. * Inform the user that a transition
  42. * from an insecure page
  43. * or from a secure page
  44. * to a weak security page
  45. * is happening.
  46. *
  47. * @param ctx A user interface context.
  48. *
  49. * @return true if the user confirms to continue
  50. */
  51. /* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
  52. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  53. /**
  54. * Inform the user that a transition
  55. * from a secure page
  56. * to an insecure page
  57. * is happening.
  58. *
  59. * @param ctx A user interface context.
  60. *
  61. * @return true if the user confirms to continue
  62. */
  63. /* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
  64. NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  65. /**
  66. * Inform the user the currently displayed page
  67. * contains some secure and some insecure page components.
  68. *
  69. * @param ctx A user interface context.
  70. *
  71. * @return true if the user decides to show insecure objects.
  72. */
  73. /* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
  74. NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  75. /**
  76. * Inform the user that information is being submitted
  77. * to an insecure page.
  78. *
  79. * @param ctx A user interface context.
  80. *
  81. * @return true if the user confirms to submit.
  82. */
  83. /* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
  84. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  85. /**
  86. * Inform the user: Although the currently displayed
  87. * page was loaded using a secure connection, and the UI probably
  88. * currently indicates a secure page,
  89. * that information is being submitted to an insecure page.
  90. *
  91. * @param ctx A user interface context.
  92. *
  93. * @return true if the user confirms to submit.
  94. */
  95. /* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
  96. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) = 0;
  97. };
  98. NS_DEFINE_STATIC_IID_ACCESSOR(nsISecurityWarningDialogs, NS_ISECURITYWARNINGDIALOGS_IID)
  99. /* Use this macro when declaring classes that implement this interface. */
  100. #define NS_DECL_NSISECURITYWARNINGDIALOGS \
  101. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  102. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  103. NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  104. NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  105. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval); \
  106. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval);
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  108. #define NS_FORWARD_NSISECURITYWARNINGDIALOGS(_to) \
  109. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringSecure(ctx, _retval); } \
  110. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmEnteringWeak(ctx, _retval); } \
  111. NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmLeavingSecure(ctx, _retval); } \
  112. NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmMixedMode(ctx, _retval); } \
  113. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecure(ctx, _retval); } \
  114. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return _to ConfirmPostToInsecureFromSecure(ctx, _retval); }
  115. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  116. #define NS_FORWARD_SAFE_NSISECURITYWARNINGDIALOGS(_to) \
  117. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringSecure(ctx, _retval); } \
  118. NS_SCRIPTABLE NS_IMETHOD ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEnteringWeak(ctx, _retval); } \
  119. NS_SCRIPTABLE NS_IMETHOD ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmLeavingSecure(ctx, _retval); } \
  120. NS_SCRIPTABLE NS_IMETHOD ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmMixedMode(ctx, _retval); } \
  121. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecure(ctx, _retval); } \
  122. NS_SCRIPTABLE NS_IMETHOD ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmPostToInsecureFromSecure(ctx, _retval); }
  123. #if 0
  124. /* Use the code below as a template for the implementation class for this interface. */
  125. /* Header file */
  126. class nsSecurityWarningDialogs : public nsISecurityWarningDialogs
  127. {
  128. public:
  129. NS_DECL_ISUPPORTS
  130. NS_DECL_NSISECURITYWARNINGDIALOGS
  131. nsSecurityWarningDialogs();
  132. private:
  133. ~nsSecurityWarningDialogs();
  134. protected:
  135. /* additional members */
  136. };
  137. /* Implementation file */
  138. NS_IMPL_ISUPPORTS1(nsSecurityWarningDialogs, nsISecurityWarningDialogs)
  139. nsSecurityWarningDialogs::nsSecurityWarningDialogs()
  140. {
  141. /* member initializers and constructor code */
  142. }
  143. nsSecurityWarningDialogs::~nsSecurityWarningDialogs()
  144. {
  145. /* destructor code */
  146. }
  147. /* boolean confirmEnteringSecure (in nsIInterfaceRequestor ctx); */
  148. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  149. {
  150. return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152. /* boolean confirmEnteringWeak (in nsIInterfaceRequestor ctx); */
  153. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmEnteringWeak(nsIInterfaceRequestor *ctx, PRBool *_retval)
  154. {
  155. return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157. /* boolean confirmLeavingSecure (in nsIInterfaceRequestor ctx); */
  158. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmLeavingSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  159. {
  160. return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162. /* boolean confirmMixedMode (in nsIInterfaceRequestor ctx); */
  163. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmMixedMode(nsIInterfaceRequestor *ctx, PRBool *_retval)
  164. {
  165. return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. /* boolean confirmPostToInsecure (in nsIInterfaceRequestor ctx); */
  168. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* boolean confirmPostToInsecureFromSecure (in nsIInterfaceRequestor ctx); */
  173. NS_IMETHODIMP nsSecurityWarningDialogs::ConfirmPostToInsecureFromSecure(nsIInterfaceRequestor *ctx, PRBool *_retval)
  174. {
  175. return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177. /* End of implementation class template. */
  178. #endif
  179. #define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1"
  180. #endif /* __gen_nsISecurityWarningDialogs_h__ */