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 _NSNSSCERTCACHE_H_ michael@0: #define _NSNSSCERTCACHE_H_ michael@0: michael@0: #include "nsINSSCertCache.h" michael@0: #include "nsIX509CertList.h" michael@0: #include "certt.h" michael@0: #include "mozilla/Mutex.h" michael@0: #include "nsNSSShutDown.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsNSSCertCache : public nsINSSCertCache, michael@0: public nsNSSShutDownObject michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSINSSCERTCACHE michael@0: michael@0: nsNSSCertCache(); michael@0: virtual ~nsNSSCertCache(); michael@0: michael@0: private: michael@0: mozilla::Mutex mutex; michael@0: nsCOMPtr mCertList; michael@0: virtual void virtualDestroyNSSReference(); michael@0: void destructorSafeDestroyNSSReference(); michael@0: }; michael@0: michael@0: #endif