Necko:nsIAuthPrompt2: Difference between revisions

async prompts, part II (final)
(async interfaces, part I)
(async prompts, part II (final))
Line 154: Line 154:
                                       inout AString pwd,
                                       inout AString pwd,
                                       inout AString domain);
                                       inout AString domain);
    /**
    * Asynchronously prompt the user for a username and password.
    * This has largely the same semantics as promptUsernameAndPassword,
    * but must return immediately after calling and return the entered
    * data in a callback.
    *
    * If the user closes the dialog using a cancel button or similar,
    * the callback's onAuthCancelled method must be called.
    * Calling cancel on the returned object SHOULD close the dialog
    * and MUST call onAuthCancelled on the provided callback.
    */
    nsICancelable promptPasswordAsync(in nsIChannel aChannel,
                                      in nsIAuthPromptCallback aCallback,
                                      in nsISupports aContext,
                                      in PRUint32 level,
                                      in PRUint32 savePassword,
                                      in PRUint32 flags,
                                      in AString user,
                                      in AString pwd,
                                      in AString domain);


  };
  };
Line 161: Line 182:
** http://lxr.mozilla.org/seamonkey/source/security/manager/ssl/src/nsNSSCallbacks.cpp#188
** http://lxr.mozilla.org/seamonkey/source/security/manager/ssl/src/nsNSSCallbacks.cpp#188
** Make aChannel an nsISupports, which can also be a certificate or certificate store or whatever?
** Make aChannel an nsISupports, which can also be a certificate or certificate store or whatever?
* Gnome wants asynchronous password prompts
** Provide a *async variant, taking a callback?
Confirmed users
195

edits