Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

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

Issue 3391028: Reland r59972: Eagerly set the IO loop used for OCSP. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address wtc comments. Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/net/url_request_context_getter.h ('k') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #pragma once 7 #pragma once
8 8
9 class URLRequestContext; 9 class URLRequestContext;
10 10
11 namespace net { 11 namespace net {
12 12
13 // Sets the MessageLoop for OCSP to the current message loop.
14 // This should be called before EnsureOCSPInit() if you want to
15 // control the message loop for OCSP.
16 void SetMessageLoopForOCSP();
17
13 // Initializes OCSP handlers for NSS. This must be called before any 18 // Initializes OCSP handlers for NSS. This must be called before any
14 // certificate verification functions. This function is thread-safe, and OCSP 19 // certificate verification functions. This function is thread-safe, and OCSP
15 // handlers will only ever be initialized once. 20 // handlers will only ever be initialized once.
16 void EnsureOCSPInit(); 21 void EnsureOCSPInit();
17 22
18 // Set URLRequestContext for OCSP handlers. 23 // Set URLRequestContext for OCSP handlers.
19 void SetURLRequestContextForOCSP(URLRequestContext* request_context); 24 void SetURLRequestContextForOCSP(URLRequestContext* request_context);
20 URLRequestContext* GetURLRequestContextForOCSP(); 25 URLRequestContext* GetURLRequestContextForOCSP();
21 26
22 } // namespace net 27 } // namespace net
23 28
24 #endif // NET_OCSP_NSS_OCSP_H_ 29 #endif // NET_OCSP_NSS_OCSP_H_
OLDNEW
« no previous file with comments | « chrome/common/net/url_request_context_getter.h ('k') | net/ocsp/nss_ocsp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698