summaryrefslogtreecommitdiffstats
path: root/net/ocsp/nss_ocsp.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 05:54:06 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 05:54:06 +0000
commit70b923496d2efe796adb5b714be06a72447fb35f (patch)
treee6304ccf384bb4dc9b64d36375cf22a91d2b3f2e /net/ocsp/nss_ocsp.h
parentd7a7173f296d9511ca33f77295c18fa3375d5573 (diff)
downloadchromium_src-70b923496d2efe796adb5b714be06a72447fb35f.zip
chromium_src-70b923496d2efe796adb5b714be06a72447fb35f.tar.gz
chromium_src-70b923496d2efe796adb5b714be06a72447fb35f.tar.bz2
Reland fix for OCSP startup race.
This is a revert of r62107 which is a revert of r62105 which is a revert of r60753 which is a revert of r60739 which is a revert of r60025 which is a revert of r59972 which is a revert of r59570 which is a revert of r59511 which is a revert of r59299 which is a revert of r59289. The most recent reverts have all been due to ChromiumOS leaks which I believe to be fixed after fixing bug 58572, since I tested the combined fix in r62105 which was green on all ChromiumOS valgrind bots. BUG=55940 TEST=Run a debug build on Linux. 10% or so of startups used to crash on startup. Shouldn't happen anymore. Review URL: http://codereview.chromium.org/3660010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp/nss_ocsp.h')
-rw-r--r--net/ocsp/nss_ocsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ocsp/nss_ocsp.h b/net/ocsp/nss_ocsp.h
index a31d025..97d69b9 100644
--- a/net/ocsp/nss_ocsp.h
+++ b/net/ocsp/nss_ocsp.h
@@ -10,6 +10,11 @@ class URLRequestContext;
namespace net {
+// Sets the MessageLoop for OCSP to the current message loop.
+// This should be called before EnsureOCSPInit() if you want to
+// control the message loop for OCSP.
+void SetMessageLoopForOCSP();
+
// Initializes OCSP handlers for NSS. This must be called before any
// certificate verification functions. This function is thread-safe, and OCSP
// handlers will only ever be initialized once.