Confirmed users
195
edits
(update interfaces) |
(update per final changes) |
||
| Line 88: | Line 88: | ||
* the user. | * the user. | ||
*/ | */ | ||
attribute AString | attribute AString username; | ||
/** | /** | ||
| Line 196: | Line 196: | ||
* return value of false. | * return value of false. | ||
*/ | */ | ||
boolean | boolean promptAuth(in nsIChannel aChannel, | ||
in PRUint32 level, | |||
in nsIAuthInformation authInfo); | |||
/** | /** | ||
| Line 217: | Line 217: | ||
* the caller should fall back to promptUsernameAndPassword(). | * the caller should fall back to promptUsernameAndPassword(). | ||
*/ | */ | ||
nsICancelable | nsICancelable asyncPromptAuth(in nsIChannel aChannel, | ||
in nsIAuthPromptCallback aCallback, | |||
in nsISupports aContext, | |||
in PRUint32 level, | |||
in nsIAuthInformation authInfo); | |||
}; | }; | ||
| Line 255: | Line 255: | ||
*/ | */ | ||
[scriptable, uuid(...)] | [scriptable, uuid(...)] | ||
interface | interface nsIPromptFactory | ||
{ | { | ||
/** | /** | ||
* Returns an object implementing | * Returns an object implementing the specified interface that creates | ||
* parented to aParent. | * prompts parented to aParent. | ||
*/ | */ | ||
void getPrompt(in nsIDOMWindow aParent, in nsIIDRef iid, | |||
[iid_is(iid),retval] out nsQIResult result); | |||
}; | }; | ||
This allows more flexibility than the current interface that wraps an nsIPrompt. | This allows more flexibility than the current interface that wraps an nsIPrompt. | ||
For actually adding the checkbox, nsIPromptService2 will need a method like promptUsernameAndPassword2Checkbox | For actually adding the checkbox, nsIPromptService2 will need a method like promptUsernameAndPassword2Checkbox (I decided on naming it promptAuth) | ||