security/manager/ssl/public/nsIKeygenThread.idl

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 // make sure to include all the required file headers
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 interface nsIObserver;
michael@0 10
michael@0 11 /**
michael@0 12 * nsIKeygenThread
michael@0 13 * This is used to communicate with the thread generating a key pair,
michael@0 14 * to be used by the dialog displaying status information.
michael@0 15 */
michael@0 16 [scriptable, uuid(8712a243-5539-447c-9f47-8653f40c3a09)]
michael@0 17 interface nsIKeygenThread : nsISupports
michael@0 18 {
michael@0 19 /**
michael@0 20 * startKeyGeneration - run the thread
michael@0 21 * A user interface using this interface needs to
michael@0 22 * call this method as soon as the status information
michael@0 23 * is displaying. This will trigger key generation.
michael@0 24 * To allow the closure of the status information,
michael@0 25 * the thread needs a handle to an observer.
michael@0 26 *
michael@0 27 * observer will be called on the UI thread.
michael@0 28 * When the key generation is done, the observe method will
michael@0 29 * be called with a topic of "keygen-finished" and null data
michael@0 30 * and subject.
michael@0 31 */
michael@0 32 void startKeyGeneration(in nsIObserver observer);
michael@0 33
michael@0 34 /**
michael@0 35 * userCanceled - notify the thread
michael@0 36 * If the user canceled, the thread is no longer allowed to
michael@0 37 * close the dialog. However, if the thread already closed
michael@0 38 * it, we are not allowed to close it.
michael@0 39 */
michael@0 40 void userCanceled(out boolean threadAlreadyClosedDialog);
michael@0 41 };
michael@0 42
michael@0 43 %{ C++
michael@0 44 // {195763b8-1dd2-11b2-a843-eb44e44aaa37}
michael@0 45 #define NS_KEYGENTHREAD_CID \
michael@0 46 { 0x195763b8, 0x1dd2, 0x11b2, { 0xa8, 0x43, 0xeb, 0x44, 0xe4, 0x4a, 0xaa, 0x37 } }
michael@0 47 #define NS_KEYGENTHREAD_CONTRACTID "@mozilla.org/security/keygenthread;1"
michael@0 48 %}

mercurial