Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / nsVerificationJob.h
blob377cfabb73be20dd929a1ff5c11c246d907e4245
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
10 #include "nspr.h"
12 #include "nsIX509Cert.h"
13 #include "nsProxyRelease.h"
15 class nsBaseVerificationJob {
16 public:
17 virtual ~nsBaseVerificationJob() {}
18 virtual void Run() = 0;
21 class nsCertVerificationJob : public nsBaseVerificationJob {
22 public:
23 nsCOMPtr<nsIX509Cert> mCert;
24 nsMainThreadPtrHandle<nsICertVerificationListener> mListener;
26 void Run();
29 class nsCertVerificationResult : public nsICertVerificationResult {
30 public:
31 nsCertVerificationResult();
33 NS_DECL_THREADSAFE_ISUPPORTS
34 NS_DECL_NSICERTVERIFICATIONRESULT
36 protected:
37 virtual ~nsCertVerificationResult();
39 private:
40 nsresult mRV;
41 uint32_t mVerified;
42 uint32_t mCount;
43 char16_t** mUsages;
45 friend class nsCertVerificationJob;
48 #endif