security/manager/boot/src/nsSecurityWarningDialogs.h

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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/. */
     7 #ifndef nsSecurityWarningDialogs_h
     8 #define nsSecurityWarningDialogs_h
    10 #include "nsISecurityWarningDialogs.h"
    11 #include "nsIPrefBranch.h"
    12 #include "nsIStringBundle.h"
    13 #include "nsCOMPtr.h"
    15 class nsSecurityWarningDialogs : public nsISecurityWarningDialogs
    16 {
    17 public:
    18   NS_DECL_THREADSAFE_ISUPPORTS
    19   NS_DECL_NSISECURITYWARNINGDIALOGS
    21   nsSecurityWarningDialogs();
    22   virtual ~nsSecurityWarningDialogs();
    24   nsresult Init();
    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 };
    39 #define NS_SECURITYWARNINGDIALOGS_CID \
    40  { /* 8d995d4f-adcc-4159-b7f1-e94af72eeb88 */       \
    41   0x8d995d4f, 0xadcc, 0x4159,                       \
    42  {0xb7, 0xf1, 0xe9, 0x4a, 0xf7, 0x2e, 0xeb, 0x88} }
    44 #endif

mercurial