diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 22:36:35 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-14 22:36:35 +0000 |
commit | 1b1a264ad3d0ecf0e0e19468b3e4b9e1553c2e88 (patch) | |
tree | c3617b3e5e0590ed2f01096929ddbb0edac000e2 /base/nss_util.h | |
parent | 7105ea549a113d4c1d473c305475caa0a866e286 (diff) | |
download | chromium_src-1b1a264ad3d0ecf0e0e19468b3e4b9e1553c2e88.zip chromium_src-1b1a264ad3d0ecf0e0e19468b3e4b9e1553c2e88.tar.gz chromium_src-1b1a264ad3d0ecf0e0e19468b3e4b9e1553c2e88.tar.bz2 |
Linux: Add Certificate Info dialog (part 1)
Rename base/nss_init.{h,cc} to base/nss_util.{h,cc}, move PRTimeToBaseTime there.
BUG=18119
TEST=Load https://www.google.com, compare to firefox cert dialog.
Review URL: http://codereview.chromium.org/500141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nss_util.h')
-rw-r--r-- | base/nss_util.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/base/nss_util.h b/base/nss_util.h new file mode 100644 index 0000000..f766228 --- /dev/null +++ b/base/nss_util.h @@ -0,0 +1,30 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_NSS_UTIL_H_ +#define BASE_NSS_UTIL_H_ + +#include "base/basictypes.h" + +namespace base { + +class Time; + +// Initialize NRPR if it isn't already initialized. This function is +// thread-safe, and NSPR will only ever be initialized once. NSPR will be +// properly shut down on program exit. +void EnsureNSPRInit(); + +// Initialize NSS if it isn't already initialized. This must be called before +// any other NSS functions. This function is thread-safe, and NSS will only +// ever be initialized once. NSS will be properly shut down on program exit. +void EnsureNSSInit(); + +// Convert a NSS PRTime value into a base::Time object. +// We use a int64 instead of PRTime here to avoid depending on NSPR headers. +Time PRTimeToBaseTime(int64 prtime); + +} // namespace base + +#endif // BASE_NSS_UTIL_H_ |