michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIPromptService.idl" michael@0: michael@0: interface nsIAuthInformation; michael@0: interface nsIAuthPromptCallback; michael@0: interface nsICancelable; michael@0: interface nsIChannel; michael@0: interface nsIDOMWindow; michael@0: michael@0: /** michael@0: * This is an improved version of nsIPromptService that is less prescriptive michael@0: * about the resulting user interface. michael@0: * michael@0: * @status INCOMPLETE do not freeze before fixing bug 228207 michael@0: */ michael@0: [scriptable, uuid(cf86d196-dbee-4482-9dfa-3477aa128319)] michael@0: interface nsIPromptService2 : nsIPromptService { michael@0: // NOTE: These functions differ from their nsIAuthPrompt counterparts by michael@0: // having additional checkbox parameters michael@0: // checkValue can be null meaning to show no checkbox michael@0: // checkboxLabel is a wstring so that it can be null from both JS and C++ in michael@0: // a convenient way michael@0: // michael@0: // See nsIAuthPrompt2 for documentation on the semantics of the other michael@0: // parameters. michael@0: boolean promptAuth(in nsIDOMWindow aParent, michael@0: in nsIChannel aChannel, michael@0: in uint32_t level, michael@0: in nsIAuthInformation authInfo, michael@0: in wstring checkboxLabel, michael@0: inout boolean checkValue); michael@0: michael@0: nsICancelable asyncPromptAuth(in nsIDOMWindow aParent, michael@0: in nsIChannel aChannel, michael@0: in nsIAuthPromptCallback aCallback, michael@0: in nsISupports aContext, michael@0: in uint32_t level, michael@0: in nsIAuthInformation authInfo, michael@0: in wstring checkboxLabel, michael@0: inout boolean checkValue); michael@0: }; michael@0: