michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _NSCERTVERIFICATIONTHREAD_H_ michael@0: #define _NSCERTVERIFICATIONTHREAD_H_ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsDeque.h" michael@0: #include "nsPSMBackgroundThread.h" michael@0: #include "nsVerificationJob.h" michael@0: michael@0: class nsCertVerificationThread : public nsPSMBackgroundThread michael@0: { michael@0: private: michael@0: nsDeque mJobQ; michael@0: michael@0: virtual void Run(void); michael@0: michael@0: public: michael@0: nsCertVerificationThread(); michael@0: ~nsCertVerificationThread(); michael@0: michael@0: static nsCertVerificationThread *verification_thread_singleton; michael@0: michael@0: static nsresult addJob(nsBaseVerificationJob *aJob); michael@0: }; michael@0: michael@0: #endif