Chromium Code Reviews
Help | Chromium Project | Sign in
(303)

Side by Side Diff: net/ocsp/nss_ocsp.h

Issue 11347039: Ensure that OCSPIOLoop is associated with right thread if restarted. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/ocsp/nss_ocsp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_OCSP_NSS_OCSP_H_ 5 #ifndef NET_OCSP_NSS_OCSP_H_
6 #define NET_OCSP_NSS_OCSP_H_ 6 #define NET_OCSP_NSS_OCSP_H_
7 7
8 #include "net/base/net_export.h" 8 #include "net/base/net_export.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class URLRequestContext; 12 class URLRequestContext;
13 13
14 // Sets the MessageLoop for NSS's HTTP client functions (i.e. OCSP, CA 14 // Sets the MessageLoop for NSS's HTTP client functions (i.e. OCSP, CA
15 // certificate and CRL fetches) to the current message loop. This should be 15 // certificate and CRL fetches) to the current message loop. This should be
16 // called before EnsureNSSHttpIOInit() if you want to control the message loop. 16 // called before EnsureNSSHttpIOInit() if you want to control the message loop.
17 NET_EXPORT void SetMessageLoopForNSSHttpIO(); 17 NET_EXPORT void SetMessageLoopForNSSHttpIO();
18 18
19 // Initializes HTTP client functions for NSS. This must be called before any 19 // Initializes HTTP client functions for NSS. This must be called before any
20 // certificate verification functions. This function is thread-safe, and HTTP 20 // certificate verification functions. This function is thread-safe, and HTTP
21 // handlers will only ever be initialized once. ShutdownNSSHttpIO() must be 21 // handlers will only ever be initialized once. ShutdownNSSHttpIO() must be
22 // called on shutdown. 22 // called on shutdown.
23 NET_EXPORT void EnsureNSSHttpIOInit(); 23 NET_EXPORT void EnsureNSSHttpIOInit();
24 24
25 // This should be called once on shutdown to stop issuing URLRequests for NSS 25 // This should be called once on shutdown to stop issuing URLRequests for NSS
26 // related HTTP fetches. 26 // related HTTP fetches.
27 NET_EXPORT void ShutdownNSSHttpIO(); 27 NET_EXPORT void ShutdownNSSHttpIO();
28 28
29 // Can be called after a call to |ShutdownNSSHttpIO()| to reset internal state
30 // and associate it with the current IO thread, on which this function must be
Ryan Sleevi 2012/11/08 14:20:11 s/current IO thread/current thread/ ("IO thread" i
blundell (OOO until April 28) 2012/11/08 15:59:08 Done.
31 // called. Should be used only in tests, wherein multiple IO threads might be
32 // sequentially created and destroyed throughout the lifetime of the app.
Ryan Sleevi 2012/11/08 14:20:11 Delete the sentence "Should be used only..."
blundell (OOO until April 28) 2012/11/08 15:59:08 Done.
33 NET_EXPORT void ResetNSSHttpIOForTesting();
34
29 // Sets the URLRequestContext for HTTP requests issued by NSS. 35 // Sets the URLRequestContext for HTTP requests issued by NSS.
30 NET_EXPORT void SetURLRequestContextForNSSHttpIO( 36 NET_EXPORT void SetURLRequestContextForNSSHttpIO(
31 URLRequestContext* request_context); 37 URLRequestContext* request_context);
32 38
33 } // namespace net 39 } // namespace net
34 40
35 #endif // NET_OCSP_NSS_OCSP_H_ 41 #endif // NET_OCSP_NSS_OCSP_H_
OLDNEW
« no previous file with comments | « no previous file | net/ocsp/nss_ocsp.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1280:2d3e6564b7b6