1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/src/nsNSSCertCache.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef _NSNSSCERTCACHE_H_ 1.9 +#define _NSNSSCERTCACHE_H_ 1.10 + 1.11 +#include "nsINSSCertCache.h" 1.12 +#include "nsIX509CertList.h" 1.13 +#include "certt.h" 1.14 +#include "mozilla/Mutex.h" 1.15 +#include "nsNSSShutDown.h" 1.16 +#include "nsCOMPtr.h" 1.17 + 1.18 +class nsNSSCertCache : public nsINSSCertCache, 1.19 + public nsNSSShutDownObject 1.20 +{ 1.21 +public: 1.22 + NS_DECL_THREADSAFE_ISUPPORTS 1.23 + NS_DECL_NSINSSCERTCACHE 1.24 + 1.25 + nsNSSCertCache(); 1.26 + virtual ~nsNSSCertCache(); 1.27 + 1.28 +private: 1.29 + mozilla::Mutex mutex; 1.30 + nsCOMPtr<nsIX509CertList> mCertList; 1.31 + virtual void virtualDestroyNSSReference(); 1.32 + void destructorSafeDestroyNSSReference(); 1.33 +}; 1.34 + 1.35 +#endif