diff -r 000000000000 -r 6474c204b198 security/manager/boot/src/nsSecurityWarningDialogs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/security/manager/boot/src/nsSecurityWarningDialogs.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,44 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef nsSecurityWarningDialogs_h +#define nsSecurityWarningDialogs_h + +#include "nsISecurityWarningDialogs.h" +#include "nsIPrefBranch.h" +#include "nsIStringBundle.h" +#include "nsCOMPtr.h" + +class nsSecurityWarningDialogs : public nsISecurityWarningDialogs +{ +public: + NS_DECL_THREADSAFE_ISUPPORTS + NS_DECL_NSISECURITYWARNINGDIALOGS + + nsSecurityWarningDialogs(); + virtual ~nsSecurityWarningDialogs(); + + nsresult Init(); + +protected: + nsresult AlertDialog(nsIInterfaceRequestor *ctx, const char *prefName, + const char16_t *messageName, + const char16_t *showAgainName, + bool aAsync, const uint32_t aBucket); + nsresult ConfirmDialog(nsIInterfaceRequestor *ctx, const char *prefName, + const char16_t *messageName, + const char16_t *showAgainName, const uint32_t aBucket, + bool* _result); + nsCOMPtr mStringBundle; + nsCOMPtr mPrefBranch; +}; + +#define NS_SECURITYWARNINGDIALOGS_CID \ + { /* 8d995d4f-adcc-4159-b7f1-e94af72eeb88 */ \ + 0x8d995d4f, 0xadcc, 0x4159, \ + {0xb7, 0xf1, 0xe9, 0x4a, 0xf7, 0x2e, 0xeb, 0x88} } + +#endif