diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
commit | 679147eead574d186ebf3069647b4c23e8ccace6 (patch) | |
tree | fc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/net/ocsp/nss_ocsp.h | |
download | qtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz |
Initial import.
Diffstat (limited to 'chromium/net/ocsp/nss_ocsp.h')
-rw-r--r-- | chromium/net/ocsp/nss_ocsp.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chromium/net/ocsp/nss_ocsp.h b/chromium/net/ocsp/nss_ocsp.h new file mode 100644 index 00000000000..fd840056d07 --- /dev/null +++ b/chromium/net/ocsp/nss_ocsp.h @@ -0,0 +1,39 @@ +// Copyright (c) 2012 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 NET_OCSP_NSS_OCSP_H_ +#define NET_OCSP_NSS_OCSP_H_ + +#include "net/base/net_export.h" + +namespace net { + +class URLRequestContext; + +// Sets the MessageLoop for NSS's HTTP client functions (i.e. OCSP, CA +// certificate and CRL fetches) to the current message loop. This should be +// called before EnsureNSSHttpIOInit() if you want to control the message loop. +NET_EXPORT void SetMessageLoopForNSSHttpIO(); + +// Initializes HTTP client functions for NSS. This must be called before any +// certificate verification functions. This function is thread-safe, and HTTP +// handlers will only ever be initialized once. ShutdownNSSHttpIO() must be +// called on shutdown. +NET_EXPORT void EnsureNSSHttpIOInit(); + +// This should be called once on shutdown to stop issuing URLRequests for NSS +// related HTTP fetches. +NET_EXPORT void ShutdownNSSHttpIO(); + +// Can be called after a call to |ShutdownNSSHttpIO()| to reset internal state +// and associate it with the current thread. +NET_EXPORT void ResetNSSHttpIOForTesting(); + +// Sets the URLRequestContext for HTTP requests issued by NSS. +NET_EXPORT void SetURLRequestContextForNSSHttpIO( + URLRequestContext* request_context); + +} // namespace net + +#endif // NET_OCSP_NSS_OCSP_H_ |