security/manager/pki/src/nsPKIParamBlock.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 #ifndef _NSPKIPARAMBLOCK_
     7 #define _NSPKIPARAMBLOCK_
     8 #include "nsCOMPtr.h"
     9 #include "nsIPKIParamBlock.h"
    10 #include "nsIDialogParamBlock.h"
    11 #include "nsISupportsArray.h"
    13 #define NS_PKIPARAMBLOCK_CID \
    14   { 0x0bec75a8, 0x1dd2, 0x11b2, \
    15     { 0x86, 0x3a, 0xf6, 0x9f, 0x77, 0xc3, 0x13, 0x71 }}
    17 #define NS_PKIPARAMBLOCK_CONTRACTID "@mozilla.org/security/pkiparamblock;1"
    19 class nsPKIParamBlock : public nsIPKIParamBlock,
    20                         public nsIDialogParamBlock
    21 {
    22 public:
    24   nsPKIParamBlock();
    25   virtual ~nsPKIParamBlock();
    26   nsresult Init();
    28   NS_DECL_NSIPKIPARAMBLOCK
    29   NS_DECL_NSIDIALOGPARAMBLOCK
    30   NS_DECL_THREADSAFE_ISUPPORTS
    31 private:
    32   nsCOMPtr<nsIDialogParamBlock> mDialogParamBlock;
    33   nsCOMPtr<nsISupportsArray>    mSupports;
    34 };
    36 #endif //_NSPKIPARAMBLOCK_

mercurial