diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 20:37:28 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 20:37:28 +0000 |
commit | ca929ed34121d8f90788f16dfd1fe555bb5701ae (patch) | |
tree | d4aedc59332c18e21c2368f9006fa92e1bf44b65 /crypto/nss_util.h | |
parent | b95b08d0da727df948ecbd8d3bebe4ecb09b97d5 (diff) | |
download | chromium_src-ca929ed34121d8f90788f16dfd1fe555bb5701ae.zip chromium_src-ca929ed34121d8f90788f16dfd1fe555bb5701ae.tar.gz chromium_src-ca929ed34121d8f90788f16dfd1fe555bb5701ae.tar.bz2 |
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
Diffstat (limited to 'crypto/nss_util.h')
-rw-r--r-- | crypto/nss_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |