PageRenderTime 143ms CodeModel.GetById 71ms app.highlight 1ms RepoModel.GetById 69ms app.codeStats 0ms

/gecko_sdk/idl/nsISecurityWarningDialogs.idl

http://firefox-mac-pdf.googlecode.com/
IDL | 124 lines | 15 code | 9 blank | 100 comment | 0 complexity | 1ab59d17bc33842c65e41c8322a8ca2a MD5 | raw file
  1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2/* ***** BEGIN LICENSE BLOCK *****
  3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4 *
  5 * The contents of this file are subject to the Mozilla Public License Version
  6 * 1.1 (the "License"); you may not use this file except in compliance with
  7 * the License. You may obtain a copy of the License at
  8 * http://www.mozilla.org/MPL/
  9 *
 10 * Software distributed under the License is distributed on an "AS IS" basis,
 11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 12 * for the specific language governing rights and limitations under the
 13 * License.
 14 *
 15 * The Original Code is mozilla.org code.
 16 *
 17 * The Initial Developer of the Original Code is
 18 * Netscape Communications Corporation.
 19 * Portions created by the Initial Developer are Copyright (C) 2001
 20 * the Initial Developer. All Rights Reserved.
 21 *
 22 * Contributor(s):
 23 *   Terry Hayes <thayes@netscape.com>
 24 *
 25 * Alternatively, the contents of this file may be used under the terms of
 26 * either the GNU General Public License Version 2 or later (the "GPL"), or
 27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 28 * in which case the provisions of the GPL or the LGPL are applicable instead
 29 * of those above. If you wish to allow use of your version of this file only
 30 * under the terms of either the GPL or the LGPL, and not to allow others to
 31 * use your version of this file under the terms of the MPL, indicate your
 32 * decision by deleting the provisions above and replace them with the notice
 33 * and other provisions required by the GPL or the LGPL. If you do not delete
 34 * the provisions above, a recipient may use your version of this file under
 35 * the terms of any one of the MPL, the GPL or the LGPL.
 36 *
 37 * ***** END LICENSE BLOCK ***** */
 38
 39#include "nsISupports.idl"
 40
 41interface nsIInterfaceRequestor;
 42
 43/**
 44 * Functions that display warnings for transitions between secure
 45 * and insecure pages, posts to insecure servers etc.
 46 *
 47 * @status FROZEN
 48 */
 49[scriptable, uuid(1c399d06-1dd2-11b2-bc58-c87cbcacdb78)]
 50interface nsISecurityWarningDialogs : nsISupports
 51{
 52  /**
 53   *  Inform the user that a transition 
 54   *    from an insecure page 
 55   *    to a secure 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 confirmEnteringSecure(in nsIInterfaceRequestor ctx);
 63
 64  /**
 65   *  Inform the user that a transition 
 66   *    from an insecure page 
 67   *    or from a secure page
 68   *    to a weak security 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 confirmEnteringWeak(in nsIInterfaceRequestor ctx);
 76
 77  /**
 78   *  Inform the user that a transition 
 79   *    from a secure page 
 80   *    to an insecure page
 81   *  is happening.
 82   *
 83   *  @param ctx A user interface context.
 84   *
 85   *  @return true if the user confirms to continue
 86   */
 87  boolean confirmLeavingSecure(in nsIInterfaceRequestor ctx);
 88
 89  /**
 90   *  Inform the user the currently displayed page
 91   *  contains some secure and some insecure page components.
 92   *
 93   *  @param ctx A user interface context.
 94   *
 95   *  @return true if the user decides to show insecure objects.
 96   */
 97  boolean confirmMixedMode(in nsIInterfaceRequestor ctx);
 98
 99  /**
100   *  Inform the user that information is being submitted
101   *  to an insecure page.
102   *
103   *  @param ctx A user interface context.
104   *
105   *  @return true if the user confirms to submit.
106   */
107  boolean confirmPostToInsecure(in nsIInterfaceRequestor ctx);
108
109  /**
110   *  Inform the user: Although the currently displayed
111   *  page was loaded using a secure connection, and the UI probably
112   *  currently indicates a secure page, 
113   *  that information is being submitted to an insecure page.
114   *
115   *  @param ctx A user interface context.
116   *
117   *  @return true if the user confirms to submit.
118   */
119  boolean confirmPostToInsecureFromSecure(in nsIInterfaceRequestor ctx);
120};
121
122%{C++
123#define NS_SECURITYWARNINGDIALOGS_CONTRACTID "@mozilla.org/nsSecurityWarningDialogs;1"
124%}