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 "nsISupports.idl" michael@0: michael@0: interface nsIInterfaceRequestor; michael@0: interface nsIKeygenThread; michael@0: michael@0: /** michael@0: * nsIGeneratingKeypairInfoDialogs michael@0: * This is the interface for giving feedback to the user michael@0: * while generating a key pair. michael@0: */ michael@0: [scriptable, uuid(11bf5cdc-1dd2-11b2-ba6a-c76afb326fa1)] michael@0: interface nsIGeneratingKeypairInfoDialogs : nsISupports michael@0: { michael@0: void displayGeneratingKeypairInfo(in nsIInterfaceRequestor ctx, michael@0: in nsIKeygenThread runnable); michael@0: }; michael@0: michael@0: %{C++ michael@0: /** michael@0: * This component is to be implemented by the embeddor. It is used to show michael@0: * feedback to the user while a private key is being generated. michael@0: * michael@0: * This component is only ever used on the UI thread. michael@0: * michael@0: * INTERFACES THAT NEED TO BE IMPLEMENTED: michael@0: * nsIGeneratingKeypairInfoDialogs michael@0: */ michael@0: #define NS_GENERATINGKEYPAIRINFODIALOGS_CONTRACTID \ michael@0: "@mozilla.org/nsGeneratingKeypairInfoDialogs;1" michael@0: %}