1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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 _INC_NSVERIFICATIONJOB_H
8 #define _INC_NSVERIFICATIONJOB_H
12 #include "nsIX509Cert.h"
13 #include "nsProxyRelease.h"
15 class nsBaseVerificationJob
{
17 virtual ~nsBaseVerificationJob() {}
18 virtual void Run() = 0;
21 class nsCertVerificationJob
: public nsBaseVerificationJob
{
23 nsCOMPtr
<nsIX509Cert
> mCert
;
24 nsMainThreadPtrHandle
<nsICertVerificationListener
> mListener
;
29 class nsCertVerificationResult
: public nsICertVerificationResult
{
31 nsCertVerificationResult();
33 NS_DECL_THREADSAFE_ISUPPORTS
34 NS_DECL_NSICERTVERIFICATIONRESULT
37 virtual ~nsCertVerificationResult();
45 friend class nsCertVerificationJob
;