Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / security / manager / ssl / nsNSSHelper.h
blob5f3f5ea9b401d4a97afbcfa7773c23d1d281ef47
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/. */
7 #ifndef nsNSSHelper_h
8 #define nsNSSHelper_h
10 #include "nsIInterfaceRequestor.h"
11 #include "nsIInterfaceRequestorUtils.h"
12 #include "pk11func.h"
14 // Implementation of an nsIInterfaceRequestor for use as context for NSS calls.
15 class PipUIContext : public nsIInterfaceRequestor {
16 public:
17 NS_DECL_THREADSAFE_ISUPPORTS
18 NS_DECL_NSIINTERFACEREQUESTOR
20 PipUIContext();
22 protected:
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