1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 #include "nsIInterfaceRequestor.h"
11 #include "nsIInterfaceRequestorUtils.h"
14 // Implementation of an nsIInterfaceRequestor for use as context for NSS calls.
15 class PipUIContext
: public nsIInterfaceRequestor
{
17 NS_DECL_THREADSAFE_ISUPPORTS
18 NS_DECL_NSIINTERFACEREQUESTOR
23 virtual ~PipUIContext();
26 // Function to get the implementor for a certain set of NSS specific dialogs.
27 nsresult
getNSSDialogs(void** _result
, REFNSIID aIID
, const char* contract
);
29 // A function that sets the password on an unitialized slot.
30 nsresult
setPassword(PK11SlotInfo
* slot
, nsIInterfaceRequestor
* ctx
);
32 #endif // nsNSSHelper_h