| Index: crypto/nss_util_internal.h
|
| diff --git a/crypto/nss_util_internal.h b/crypto/nss_util_internal.h
|
| index ea40fdb790a10fda37728549d01a3f9ffdd93a97..e90e4c4294e9a6d9f1d8e83cbe054c078c8f6386 100644
|
| --- a/crypto/nss_util_internal.h
|
| +++ b/crypto/nss_util_internal.h
|
| @@ -25,6 +25,18 @@ PK11SlotInfo* GetPublicNSSKeySlot();
|
| // PK11_FreeSlot.
|
| PK11SlotInfo* GetPrivateNSSKeySlot();
|
|
|
| +// A helper class that acquires the SECMOD list read lock while the
|
| +// AutoSECMODListReadLock is in scope.
|
| +class AutoSECMODListReadLock {
|
| + public:
|
| + AutoSECMODListReadLock();
|
| + ~AutoSECMODListReadLock();
|
| +
|
| + private:
|
| + SECMODListLock* lock_;
|
| + DISALLOW_COPY_AND_ASSIGN(AutoSECMODListReadLock);
|
| +};
|
| +
|
| } // namespace crypto
|
|
|
| #endif // CRYPTO_NSS_UTIL_INTERNAL_H_
|
|
|