OSReauthenticator.h (1031B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 * 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/. */ 6 7 #ifndef OSReauthenticator_h 8 #define OSReauthenticator_h 9 10 #include "nsIOSReauthenticator.h" 11 12 #define NS_OSREAUTHENTICATOR_CONTRACTID \ 13 "@mozilla.org/security/osreauthenticator;1" 14 #define NS_OSREAUTHENTICATOR_CID \ 15 {0x4fe082ae, 0x6ff0, 0x4b41, {0xb2, 0x4f, 0xea, 0xa6, 0x64, 0xf6, 0xe4, 0x6a}} 16 17 class OSReauthenticator : public nsIOSReauthenticator { 18 public: 19 NS_DECL_THREADSAFE_ISUPPORTS 20 NS_DECL_NSIOSREAUTHENTICATOR 21 22 private: 23 virtual ~OSReauthenticator() = default; 24 }; 25 26 #ifdef XP_MACOSX 27 nsresult ReauthenticateUserMacOS(const nsAString& aPrompt, 28 /* out */ bool& aReauthenticated, 29 /* out */ bool& aIsBlankPassword); 30 #endif // XP_MACOSX 31 32 #endif // OSReauthenticator_h