1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/boot/src/nsSecurityWarningDialogs.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef nsSecurityWarningDialogs_h 1.11 +#define nsSecurityWarningDialogs_h 1.12 + 1.13 +#include "nsISecurityWarningDialogs.h" 1.14 +#include "nsIPrefBranch.h" 1.15 +#include "nsIStringBundle.h" 1.16 +#include "nsCOMPtr.h" 1.17 + 1.18 +class nsSecurityWarningDialogs : public nsISecurityWarningDialogs 1.19 +{ 1.20 +public: 1.21 + NS_DECL_THREADSAFE_ISUPPORTS 1.22 + NS_DECL_NSISECURITYWARNINGDIALOGS 1.23 + 1.24 + nsSecurityWarningDialogs(); 1.25 + virtual ~nsSecurityWarningDialogs(); 1.26 + 1.27 + nsresult Init(); 1.28 + 1.29 +protected: 1.30 + nsresult AlertDialog(nsIInterfaceRequestor *ctx, const char *prefName, 1.31 + const char16_t *messageName, 1.32 + const char16_t *showAgainName, 1.33 + bool aAsync, const uint32_t aBucket); 1.34 + nsresult ConfirmDialog(nsIInterfaceRequestor *ctx, const char *prefName, 1.35 + const char16_t *messageName, 1.36 + const char16_t *showAgainName, const uint32_t aBucket, 1.37 + bool* _result); 1.38 + nsCOMPtr<nsIStringBundle> mStringBundle; 1.39 + nsCOMPtr<nsIPrefBranch> mPrefBranch; 1.40 +}; 1.41 + 1.42 +#define NS_SECURITYWARNINGDIALOGS_CID \ 1.43 + { /* 8d995d4f-adcc-4159-b7f1-e94af72eeb88 */ \ 1.44 + 0x8d995d4f, 0xadcc, 0x4159, \ 1.45 + {0xb7, 0xf1, 0xe9, 0x4a, 0xf7, 0x2e, 0xeb, 0x88} } 1.46 + 1.47 +#endif