From ca929ed34121d8f90788f16dfd1fe555bb5701ae Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Thu, 15 Dec 2011 20:37:28 +0000 Subject: Reland: Simplify PRTimeToBaseTime implementation, add BaseTimeToPRTime. BUG=107047 TEST=crypto_unittests TBR=wtc@chromium.org Review URL: http://codereview.chromium.org/8956003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114693 0039d316-1c4b-4281-b951-d872f2087c98 --- crypto/nss_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/nss_util.h') diff --git a/crypto/nss_util.h b/crypto/nss_util.h index a617224..746691d 100644 --- a/crypto/nss_util.h +++ b/crypto/nss_util.h @@ -149,6 +149,10 @@ CRYPTO_EXPORT SymmetricKey* GetSupplementalUserKey(); // We use a int64 instead of PRTime here to avoid depending on NSPR headers. CRYPTO_EXPORT base::Time PRTimeToBaseTime(int64 prtime); +// Convert a base::Time object into a PRTime value. +// We use a int64 instead of PRTime here to avoid depending on NSPR headers. +CRYPTO_EXPORT int64 BaseTimeToPRTime(base::Time time); + #if defined(USE_NSS) // Exposed for unittests only. |path| should be an existing directory under // which the DB files will be placed. |description| is a user-visible name for -- cgit v1.1