security/manager/boot/src/nsSecurityWarningDialogs.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:8c87460b745c
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 nsSecurityWarningDialogs_h
8 #define nsSecurityWarningDialogs_h
9
10 #include "nsISecurityWarningDialogs.h"
11 #include "nsIPrefBranch.h"
12 #include "nsIStringBundle.h"
13 #include "nsCOMPtr.h"
14
15 class nsSecurityWarningDialogs : public nsISecurityWarningDialogs
16 {
17 public:
18 NS_DECL_THREADSAFE_ISUPPORTS
19 NS_DECL_NSISECURITYWARNINGDIALOGS
20
21 nsSecurityWarningDialogs();
22 virtual ~nsSecurityWarningDialogs();
23
24 nsresult Init();
25
26 protected:
27 nsresult AlertDialog(nsIInterfaceRequestor *ctx, const char *prefName,
28 const char16_t *messageName,
29 const char16_t *showAgainName,
30 bool aAsync, const uint32_t aBucket);
31 nsresult ConfirmDialog(nsIInterfaceRequestor *ctx, const char *prefName,
32 const char16_t *messageName,
33 const char16_t *showAgainName, const uint32_t aBucket,
34 bool* _result);
35 nsCOMPtr<nsIStringBundle> mStringBundle;
36 nsCOMPtr<nsIPrefBranch> mPrefBranch;
37 };
38
39 #define NS_SECURITYWARNINGDIALOGS_CID \
40 { /* 8d995d4f-adcc-4159-b7f1-e94af72eeb88 */ \
41 0x8d995d4f, 0xadcc, 0x4159, \
42 {0xb7, 0xf1, 0xe9, 0x4a, 0xf7, 0x2e, 0xeb, 0x88} }
43
44 #endif

mercurial